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.

A simple idea to solve the error : "rpn_loss_box: nan"

See original GitHub issue

There 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:open
  • Created 6 years ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
kinzzokucommented, Jun 25, 2018

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

2reactions
endernewtoncommented, Jan 18, 2018

the underlying reason might be your dataset is 0-based rather than 1-based in coordinates?

Read more comments on GitHub >

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

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