Open pollyminatel opened 2 years ago
I am always getting an exception loop saying "image invalid, skipping" and I just can not see why.
2021-12-16 11:26:40.670417: W tensorflow/core/framework/op_kernel.cc:1639] Unknown: Exception: Traceback (most recent call last):
File "C:\Anaconda3\envs\Sensor detection\lib\site-packages\tensorflow_core\python\ops\script_ops.py", line 235, in call ret = func(*args)
File "D:\emn_pg (sensor detection project)\sensor detection\lib\layer_utils\proposal_target_layer.py", line 47, in proposal_target_layer rois_per_image, _num_classes)
File "D:\emn_pg (sensor detection project)\sensor detection\lib\layer_utils\proposal_target_layer.py", line 135, in _sample_rois raise Exception()
Exception
image invalid, skipping
These are an image and annotation examples:
<?xml version="1.0"?> <annotation> <folder>annotations</folder> <filename>1.JPG</filename> <path/> <source> <database>Unknown</database> </source> <size> <width>3024</width> <height>4032</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>sensor</name> <pose>Unspecified</pose> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>1189</xmin> <ymin>1433</ymin> <xmax>1709</xmax> <ymax>2013</ymax> </bndbox> </object> </annotation>
Some images have more than one sensor:
<?xml version="1.0"?> <annotation> <folder>annotations</folder> <filename>10.JPG</filename> <path/> <source> <database>Unknown</database> </source> <size> <width>3024</width> <height>4032</height> <depth>3</depth> </size> <segmented>0</segmented> <object> <name>sensor</name> <pose>Unspecified</pose> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>1643</xmin> <ymin>1528</ymin> <xmax>1748</xmax> <ymax>1620</ymax> </bndbox> </object> <object> <name>sensor</name> <pose>Unspecified</pose> <truncated>0</truncated> <occluded>0</occluded> <difficult>0</difficult> <bndbox> <xmin>2387</xmin> <ymin>2716</ymin> <xmax>2455</xmax> <ymax>2784</ymax> </bndbox> </object> </annotation>
I can't see what image is causing this, or if it is a problem somewhere in the code. Can someone help me?
I am always getting an exception loop saying "image invalid, skipping" and I just can not see why.
2021-12-16 11:26:40.670417: W tensorflow/core/framework/op_kernel.cc:1639] Unknown: Exception: Traceback (most recent call last):
File "C:\Anaconda3\envs\Sensor detection\lib\site-packages\tensorflow_core\python\ops\script_ops.py", line 235, in call ret = func(*args)
File "D:\emn_pg (sensor detection project)\sensor detection\lib\layer_utils\proposal_target_layer.py", line 47, in proposal_target_layer rois_per_image, _num_classes)
File "D:\emn_pg (sensor detection project)\sensor detection\lib\layer_utils\proposal_target_layer.py", line 135, in _sample_rois raise Exception()
Exception
image invalid, skipping
These are an image and annotation examples:
Some images have more than one sensor:
I can't see what image is causing this, or if it is a problem somewhere in the code. Can someone help me?