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.

SSD300 train throw gradients error

See original GitHub issue

Hi

I tried used the SSD300 model, subsampled the weights to players detection (just 2 labels : persons and background) and train on my own dataset.

When i run model.fit_generator function, i got error 👍 `

An operation has None for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval.

I tried search and solved in the functions definition, but didn’t success with that.

I uploaded my temp code to : https://github.com/amichayfeldman/SSD/blob/master/temp

Any help for that? Thanks

`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
amichayfeldmancommented, Jan 6, 2019

First of all’ try change ‘inference mode’ to ‘training’. Secondly, i iterate over the layers and define which layers i want to train. Somehow this “solved” my issue (i assume that one of the first layers that i finally didnt train caused to the issue)

1reaction
jessiffmmcommented, Jan 5, 2019

@amichayfeldman Did you resolve your problem? I have the same problem if I use inference mode and I try to do fit_generator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSD300 train throw gradients error issue - PythonTechWorld
SSD300 train throw gradients error. Hi. I tried used the SSD300 model, subsampled the weights to players detection (just 2 labels : persons...
Read more >
Index out of range using input dim 0; input has only 0 ... - GitHub
... and it throws an InvalidArgumentError the moment I start the training. ... input has only 0 dims" during ssd300 model training #375....
Read more >
Auto Grad Accum - Composer
Too low, and your model may throw a CUDA Out of Memory (OOM) error. Finding that magical combination of gradient accumulation, batch size,...
Read more >
Detecting Faulty Tape-around Weatherproofing Cables by ...
detections of errors among radio cabinets are crucial. ... SSD300[4] ... the training time, but it will better find the direction of the...
Read more >
MATLAB Answers - MathWorks
i try to train a faster rcnn detector, but i got some error like this: Error using . ... DAGNetwork/computeGradientsForTraining/efficientBackProp (line 748).
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