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.

Getting Assertion Error

See original GitHub issue

Appending horizontally-flipped training examples... wrote gt roidb to /data/shivamash/faster-rcnn.pytorch/data/cache/voc_2007_trainval_gt_roidb.pkl Traceback (most recent call last): File "train_plane.py", line 206, in <module> imdb, roidb, ratio_list, ratio_index = combined_roidb(args.imdb_name) File "/data/shivamash/faster-rcnn.pytorch/lib/roi_data_layer/roidb.py", line 116, in combined_roidb roidbs = [get_roidb(s) for s in imdb_names.split('+')] File "/data/shivamash/faster-rcnn.pytorch/lib/roi_data_layer/roidb.py", line 113, in get_roidb roidb = get_training_roidb(imdb) File "/data/shivamash/faster-rcnn.pytorch/lib/roi_data_layer/roidb.py", line 97, in get_training_roidb imdb.append_flipped_images() File "/data/shivamash/faster-rcnn.pytorch/lib/datasets/imdb.py", line 123, in append_flipped_images assert (boxes[:, 2] >= boxes[:, 0]).all() AssertionError I am training on a different dataset. I have prepared them in PASCAL_VOC format. Can you suggest why I am getting this error? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ashutoshIITKcommented, Apr 21, 2018

Yes, my dataset bounding boxes had negative points and also x_max<x_min. I have fixed them. Thank you very much for your help.

0reactions
AtriSaxenacommented, May 24, 2019

I am also getting same error. I checked the file. In below xml file i am getting error. I think data is right. What other possible solution you can suggest. I have modified Pascal_Voc.py file.

<annotation>
<folder>open_images_volume</folder>
<filename>000a9c6e22a06877.jpg</filename>
<path>/mnt/open_images_volume/000a9c6e22a06877.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>1024</width>
<height>765</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>Giraffe</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>290</xmin>
<ymin>53</ymin>
<xmax>650</xmax>
<ymax>748</ymax>
</bndbox>
</object>
</annotation>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python | Assertion Error - GeeksforGeeks
Assertion Error Assertion is a programming concept used while writing a code where the user declares a condition to be true using assert ......
Read more >
What is an AssertionError? In which case should I throw it from ...
AssertionError is an Unchecked Exception which rises explicitly by programmer or by API Developer to indicate that assert statement fails.
Read more >
AssertionError (Java Platform SE 7 ) - Oracle Help Center
Constructs an AssertionError with its detail message derived from the specified object, which is converted to a string as defined in section 15.18.1.1...
Read more >
How to handle Assertion Error in Java? - Tutorialspoint
In order to handle the assertion error, we need to declare the assertion statement in the try block and catch the assertion error...
Read more >
What is Assertion Error in PYTHON? - Quora
An AssertionError is an error generated by the program to indicate that something that should never happen, has happened. It is commonly used...
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