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

Erro with torchpie packet #1

Closed
santyelegy opened this issue Jan 10, 2021 · 4 comments
Closed

Erro with torchpie packet #1

santyelegy opened this issue Jan 10, 2021 · 4 comments

Comments

@santyelegy
Copy link

I get the following erro:
Traceback (most recent call last):
File "/disk/11811901/anaconda3/envs/torchb/python3.7/site-packages/injector/init.py", line 804, in get
return self._context[key]
KeyError: <class 'torchpie.core.environment.Args'>

and a exception occur when handling this exception
packages/torchpie/core/environment/init.py", line 112, in provide_args
args = Args()
File "/disk/11811901/anaconda3/envs/torch/lib/python3.7/site-packages/torchpie/core/environment/init.py", line 75, in init
self.parse_known_args_from(parser)
AttributeError: 'Args' object has no attribute 'parse_known_args_from'

I get my torchpie packet by running pip install -r requirements.txt and train the URMP by CUDA_VISIBLE_DEVICES=6 python train.py -c config/URMP/violin.conf -e exps/urmp-vn with torch version 1.4

I check my version of torchpie,it seems that it do not have parse_known_args_from, and I only find few message about this packet from google.

@Negiinnn
Copy link

Hi @santyelegy Were you able to solve this issue? I am getting the same error.

@santyelegy
Copy link
Author

Hi @santyelegy Were you able to solve this issue? I am getting the same error.

@Negiinnn I try to remove the torchpie packet, but I can not reach the acc in the paper, so I think I made some mistake when refactoring,and I'm here to seek for the author's help. my fork is here , it can run on my server.

@SunDoge
Copy link

SunDoge commented Jan 15, 2021

@santyelegy @Negiinnn

pip install typed-args==0.2

@Negiinnn
Copy link

Thank you!

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