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

AttributeError: 'module' object has no attribute 'onemodel_v42_7' #4

Open
kantajitshaw opened this issue Jan 1, 2019 · 6 comments
Open

Comments

@kantajitshaw
Copy link

When I'm trying to run the scripts, it is giving the above-mentioned error.
Traceback (most recent call last):
File "train_frame.py", line 14, in
from oneshot import *
AttributeError: 'module' object has no attribute 'onemodel_v42_7'

I think that some files are missing. Can you help by providing the files?
Thanks

@wangjiongw
Copy link

I met the same problem. And fortunately there is no missing files, but some naming errors.
You can find that the proposed model is exactly defined in 'oneshot/onemodel_sg-one.py'.
I solved it by modifying the name in 'oneshot/init' to the actual file name, e.g. 'onemodel_sg-one'.
Also, the arch input should also be changed.

@li-yanling
Copy link

I met the same problem. And fortunately there is no missing files, but some naming errors.
You can find that the proposed model is exactly defined in 'oneshot/onemodel_sg-one.py'.
I solved it by modifying the name in 'oneshot/init' to the actual file name, e.g. 'onemodel_sg-one'.
Also, the arch input should also be changed.

Thanks. But after changing it to onemodel_sg-one, the new error name "onemodel_sg' is not defined comes out from train_frame.py line 62 model = eval(args.arch).OneModel(args). Did you meet the same error? Thank you.

@xiaomengyc
Copy link
Owner

Sorry for the later response. @heyPooPy is right. Btw, I have updated the oneshot/init.py file. Thanks!

@zhao123ying
Copy link

I met the same problem. And fortunately there is no missing files, but some naming errors.
You can find that the proposed model is exactly defined in 'oneshot/onemodel_sg-one.py'.
I solved it by modifying the name in 'oneshot/init' to the actual file name, e.g. 'onemodel_sg-one'.
Also, the arch input should also be changed.

Thanks. But after changing it to onemodel_sg-one, the new error name "onemodel_sg' is not defined comes out from train_frame.py line 62 model = eval(args.arch).OneModel(args). Did you meet the same error? Thank you.

sorry,I have met same problem with you.Do you deal with it?

@al3ms
Copy link

al3ms commented Apr 1, 2023

onemodel_sg-one

Did you solve it?
I am facing the same problem.

@al3ms
Copy link

al3ms commented Apr 1, 2023

I get this error, anyone knows how to fix it?

Running parameters:

{
"arch":"onemodel_sg-one",
"max_steps":100001,
"lr":1e-05,
"disp_interval":100,
"save_interval":5000,
"snapshot_dir":"/content/drive/My Drive/sofa/SG-One/snapshots",
"resume":false,
"start_count":0,
"split":"train",
"group":1,
"num_folds":4
}
Traceback (most recent call last):
File "/content/drive/My Drive/sofa/SG-One/train_frame.py", line 159, in
train(args)
File "/content/drive/My Drive/sofa/SG-One/train_frame.py", line 90, in train
model, optimizer= get_model(args)
File "/content/drive/My Drive/sofa/SG-One/train_frame.py", line 62, in get_model
model = eval(args.arch).OneModel(args)
File "", line 1, in
NameError: name 'onemodel_sg' is not defined

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

6 participants