A simple idea to solve the error : "rpn_loss_box: nan"
See original GitHub issueThere is an error with bounding boxes’ coordinates,when some of coordinate values become 65535.
So, we can open the file named “minibatch.py” , find the line:
gt_boxes = np.empty((len(gt_inds), 5), dtype=np.float32)
and insert some codes in front of it :
boxes = roidb[0]['boxes'][gt_inds, :]
for idx in range(len(boxes)):
boxes[idx][boxes[idx]==65535] = 0
这可能算不上是个好的解决方案 ~
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:10 (1 by maintainers)
Top Results From Across the Web
BasePart.Position returns NaN value? - Scripting Support
Postion returns NaN and completely breaks the tank. I've tried iterating through a for loop that contains the components of the cframe, and...
Read more >How PRO DEVELOPERS learned to script.... - YouTube
Today I asked pro Roblox developers what they did when learning to script and what was useful to them. I also did a...
Read more >How can I fix the NaN error in Javascipt I keep getting?
NaN is not an error, it's a value. Make sure you're doing the math with numbers, and not with elements or undefineds. ·...
Read more >Solved: NaN Error - Microsoft Power BI Community
Typically you get NaN when dividing 0 by 0. So adjust your formula something like if Quantity = 0 then 0 else Cost...
Read more >Floating-point arithmetic - Wikipedia
In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the ...
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 FreeTop 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
Top GitHub Comments
@FMsunyh Did you delete the .pkl files created in in the cache folder of the dataset? For me deleting the -1 didn’t have any effect too at first. But deleting the -1 and after that the .pkl files solved it for me.
the underlying reason might be your dataset is 0-based rather than 1-based in coordinates?