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

只能跑resnet,训练其他模型时,一直报错。 #5

Open
loganzhang4 opened this issue Dec 26, 2023 · 2 comments
Open

只能跑resnet,训练其他模型时,一直报错。 #5

loganzhang4 opened this issue Dec 26, 2023 · 2 comments

Comments

@loganzhang4
Copy link

Traceback (most recent call last):
File "E:\Git\download\pytorch-classifier-master\main.py", line 151, in
opt, model, ema, train_dataset, test_dataset, optimizer, scaler, lr_scheduler, loss, DEVICE, CLASS_NUM, begin_epoch, best_metrice = parse_opt()
File "E:\Git\download\pytorch-classifier-master\main.py", line 113, in parse_opt
model = select_model(opt.model_name, CLASS_NUM, (opt.image_size, opt.image_size), opt.image_channel,
File "E:\Git\download\pytorch-classifier-master\utils\utils_model.py", line 59, in select_model
model = eval('models.{}(pretrained={})'.format(name, pretrained))
File "", line 1, in
TypeError: 'module' object is not callable
![Uploading P_0LYPL2Y825NUXPY_3{_8.png…

@loganzhang4
Copy link
Author

P_0LYPL2Y825NUXPY_3 {_8

@174326Jl
Copy link

runs模型下载的链接过期了,可以重新分享一下吗?求求了

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

2 participants