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

model's parameters going to be empty #19

Open
G-Bong opened this issue Feb 11, 2020 · 5 comments
Open

model's parameters going to be empty #19

G-Bong opened this issue Feb 11, 2020 · 5 comments

Comments

@G-Bong
Copy link

G-Bong commented Feb 11, 2020

❓ Questions and Help

Hello all

When I do execution the code below in my ubuntu terminal, I get the error RuntimeError: stack expects a non-empty TensorList. I am trying to train the model using MS-COCO 2017 datasets (train2017, val2017, test2017).
python tools/train_net.py --config-file "configs/rotated/e2e_ms_rcnn_R_50_FPN_1x.yaml" SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 SOLVER.MAX_ITER 720000 SOLVER.STEPS "(480000, 640000)" TEST.IMS_PER_BATCH 1

image

This is my dependencies for this rotated_maskrcnn.
image

Could you give me any tips?

Best regards

Thanks.

@mrlooi
Copy link
Owner

mrlooi commented Feb 13, 2020

From the traceback it would seem like your model.parameters() is empty.
Either that or clip_grad_norm has changed API. This repo has been tested on 1.0, 1.1. Not tested on torch 1.5

@G-Bong
Copy link
Author

G-Bong commented Feb 13, 2020

@mrlooi I am curious that what version of python did you use? I am working with conda to follow your step-by-step installation but it is not working in my docker of nvidia/cuda-9.0-devel

@mrlooi
Copy link
Owner

mrlooi commented Feb 14, 2020

It should work with python 2 and 3. Have you changed your torch version to 1.0 or 1.1?

@G-Bong
Copy link
Author

G-Bong commented Feb 14, 2020

@mrlooi Yes I tried to run your code after changing the torch version. I tried many times but I am still stuck for the environment setting. Now I am trying to use your Docker files.
I failed to make docker image from your Dockerfile in dockerfile folder. Now I am trying with docker-jupyter.

Could you give me comment consistently when I give you errors??
I am very worried that you are getting irritated by my questions.

Anyway, thank you so much for your comment so far. :)

@mrlooi
Copy link
Owner

mrlooi commented Feb 14, 2020

Hey no problem, I wouldn't use the docker file, it's not updated.
If I were you, I'd have a look into the model.parameters() output, and see if it's empty. If it's empty, it means perhaps your model didn't load properly somewhere. If not, it's probably still the API change and perhaps your torch version is still not correct? Double check that your interpreter is using the right torch version.
At the end, if all else fails, try running on python2.7 or python3.5/3.6. Sorry I can't be of much more help here

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