model's parameters going to be empty
See original GitHub issue❓ 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

This is my dependencies for this rotated_maskrcnn.

Could you give me any tips?
Best regards
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Empty parameters list for model - python - Stack Overflow
You have put commas (',') in your __init__ method, at the end of most instructions. Remove them and model.parameters() will work just fine....
Read more >Model.parameters() is empty - Part 1 (2018)
I am having a hart time getting pytorch to recognize the parameters of my model. I have rewritten this code in a couple...
Read more >Field parameter in Modelbuilder - empty? - GIS Stack Exchange
I have built a model, as input parameter I have a 2 parameters: a Feature Layer and a Field But when I run...
Read more >parameters() is empty in forward when using DataParallel
parameters () returns leaf variables, "parameters" in DataParallel replicas are not leafs (they are computed from the base model parameters.
Read more >5.3 Fitting the Empty Model - CourseKata
The R function we are going to use is lm() , which stands for “linear model.” (We'll say more about why it's called...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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