Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package versions #12

Open
kubicndmr opened this issue Feb 21, 2022 · 2 comments
Open

Package versions #12

kubicndmr opened this issue Feb 21, 2022 · 2 comments

Comments

@kubicndmr
Copy link

Hello,

Thank you for sharing your code. With current package versions, I couldn't run the code. Could you chech the versions?

I used pytorch-lightning=0.8.5 but self.log is not defined in that version.
AttributeError: 'FeatureExtraction' object has no attribute 'log'

Then I tried also with version 1.0.6 (because it is mentioned in one of the issues) and i got this error

File "/home/kubi/Desktop/TeCNO/train.py", line 57, in train trainer = Trainer( File "/home/kubi/miniconda3/envs/tecnoEnv/lib/python3.9/site-packages/pytorch_lightning/trainer/connectors/env_vars_connector.py", line 41, in overwrite_by_env_vars return fn(self, **kwargs) TypeError: __init__() got an unexpected keyword argument 'log_save_interval'

@leonmayer
Copy link

I got it to work by installing pytorch-lightning=1.1.8 and changing pl.metrics.Fbeta to pl.metrics.FBeta in feature_extraction.py.

@Fan2022HNU
Copy link

I install pytorch-lightning==0.8.5, and changing pl.metrics.Fbeta to pl.metrics.FBeta in feature_extraction.py. A error happen here.
pl.metrics.FBeta(num_classes=7, multilabel=True)
Traceback (most recent call last):
File "/home/fwp/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "", line 1, in
TypeError: init() got an unexpected keyword argument 'multilabel'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants