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

training done, when predict got an error. #5

Open
qwerty200696 opened this issue Sep 30, 2024 · 1 comment
Open

training done, when predict got an error. #5

qwerty200696 opened this issue Sep 30, 2024 · 1 comment

Comments

@qwerty200696
Copy link
Contributor

qwerty200696 commented Sep 30, 2024

I train model with single-machine single-GPU, here is the error log:

Test: Total time: 0:10:10 (0.4606 s / it)
Acc@1 74.429 Acc@5 100.000 loss 0.673
Accuracy of the network on the 31809 test images: 74.4%
Max accuracy: 75.11%
Training time 5:37:41
Traceback (most recent call last):
File "/code/xxx/code/MobileNetV4/train_gpu.py", line 517, in
main(args)
File "/code/xxx/code/MobileNetV4/train_gpu.py", line 496, in main
model_predict = create_model(
File "/usr/local/lib/python3.9/dist-packages/timm/models/_factory.py", line 114, in create_model
model = create_fn(
File "/code/xxx/code/MobileNetV4/models/build_models.py", line 342, in mobilenetv4_small
model = MobileNetV4('MobileNetV4ConvSmall', **kwargs)
TypeError: init() got an unexpected keyword argument 'args'

@jiaowoguanren0615
Copy link
Owner

Thank you for your finding, I should use a specific model name, I have modified the bug in train_gpu.py on the line 501, you can modify the code according to your model

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