SG-One icon indicating copy to clipboard operation
SG-One copied to clipboard

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

Open kantajitshaw opened this issue 6 years ago • 6 comments

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

kantajitshaw avatar Jan 01 '19 08:01 kantajitshaw

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.

wangjiongw avatar Feb 14 '19 07:02 wangjiongw

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.

li-yanling avatar Sep 22 '20 04:09 li-yanling

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

xiaomengyc avatar Sep 28 '20 05:09 xiaomengyc

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?

zhao123ying avatar Mar 27 '22 07:03 zhao123ying

onemodel_sg-one

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

al3ms avatar Apr 01 '23 00:04 al3ms

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

al3ms avatar Apr 01 '23 23:04 al3ms