question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

image

This is my dependencies for this rotated_maskrcnn. image

Could you give me any tips?

Best regards

Thanks.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrlooicommented, 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

0reactions
mrlooicommented, 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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found