rotated_maskrcnn icon indicating copy to clipboard operation
rotated_maskrcnn copied to clipboard

model's parameters going to be empty

Open G-Bong opened this issue 5 years ago • 5 comments

❓ 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.

G-Bong avatar Feb 11 '20 07:02 G-Bong

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

mrlooi avatar Feb 13 '20 01:02 mrlooi

@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

G-Bong avatar Feb 13 '20 14:02 G-Bong

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

mrlooi avatar Feb 14 '20 01:02 mrlooi

@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. :)

G-Bong avatar Feb 14 '20 01:02 G-Bong

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

mrlooi avatar Feb 14 '20 10:02 mrlooi