-
Notifications
You must be signed in to change notification settings - Fork 18
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
TypeError: train() takes 2 positional arguments but 3 were given #3
Comments
Please show me your error message so I can help you. |
Traceback (most recent call last): |
Do you use the following command to train the model? |
The train function is |
How you install this repo first following https://github.com/Res2Net/Res2Net-maskrcnn/blob/master/INSTALL.md ? |
python tools/train_net.py --config-file "configs/pytorch_mask_rcnn_R2_50_s4_FPN_2x.yaml" SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 SOLVER.MAX_ITER 720000 SOLVER.STEPS "(480000, 640000)" TEST.IMS_PER_BATCH 1
|
yes. |
You can try the distributed training mode. I didn't use the python tools/train_net.py --config-file "configs/pytorch_mask_rcnn_R2_50_s4_FPN_2x.yaml" SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 SOLVER.MAX_ITER 720000 SOLVER.STEPS "(480000, 640000)" TEST.IMS_PER_BATCH 1 to train the model as it cannot reproduce the performance of the model zoo in maskrcnn-benchmark. |
Actually the maskrcnn-benchmark is deprecated now. We also have the res2net+mmdetection and res2net+detectron2. You can use this two repos to achieve much better performance. |
So, now I cannot use single GPU? |
You cannot reproduce the result with one GPU. |
So we cannot train with one GPU you mean? |
|
What should I change if I want to use single GPU? |
Hello Sir,
Can you please help me with this problem.
I tried many ways but I cannot success in that.
Error shows in line 160.
Thank you.
The text was updated successfully, but these errors were encountered: