Skip to content

Inference problem #29

@tongpinmo

Description

@tongpinmo

After I train the network with multiple classes(11), the inference result is confusing.
In applyOnImage.py:
The first problem is in the line:
imsave(save_path, ut.combine_image_blobs(image_raw, pred_blobs)):
ValueError: Invalid shape for image array: (10, w,h, c); the counts[None]: [[7. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]

so I add pred_blobs_max = np.argmax(pred_blobs,axis=0),
imsave(save_path, ut.combine_image_blobs(image_raw, pred_blobs_max))
and it works

However, here the second problem comes:
the visualization result of prediction images is very confusing, it seems that the count is correct but the pixel location is not on the object

the dataset is the same to pascal.py

Thank you very much!
@IssamLaradji

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions