Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image invalid, skipping #949

Open
pollyminatel opened this issue Dec 16, 2021 · 0 comments
Open

image invalid, skipping #949

pollyminatel opened this issue Dec 16, 2021 · 0 comments

Comments

@pollyminatel
Copy link

pollyminatel commented Dec 16, 2021

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:
1

<?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:
10

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant