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

Swin Transformer hallucinate non-existant seed #26

Open
MaxenceGui opened this issue Apr 9, 2024 · 1 comment
Open

Swin Transformer hallucinate non-existant seed #26

MaxenceGui opened this issue Apr 9, 2024 · 1 comment
Labels
bug Something isn't working user-visible User visible enhancement or features - must QA

Comments

@MaxenceGui
Copy link
Collaborator

MaxenceGui commented Apr 9, 2024

Repeat the process with the Swin Transformer. Detect the right seed, but hallucinate a fourth one.
Image

Originally posted by @MaxenceGui in #14 (comment)

Description 🚀

When testing the Swin Transformer with the image, four seeds were detected. Even if the prediction is the correct one (Bromus hordaceous), only three seeds should have been detected. This could be caused by how the model was trained or because he is sensitive to the seed shadows.

Expected Behavior 📉

Detect three seeds and return three predictions.

Actual Behavor 📈

Detect four seeds and return four predictions.

Additional Context 📌

Quick fixes, on the user side, we can try to give more space to the seeds and see if the results are different.

Another avenue is to change the inference function in the backend to check if box are overlapping with the previous box and the next box instead of just checking two boxes. (However this would just hide that kind of errors)

Support image 🖼️

See previous images and images from the previous issues:

Related to

@MaxenceGui MaxenceGui added the bug Something isn't working label Apr 9, 2024
@MaxenceGui MaxenceGui added this to Nachet Apr 9, 2024
@github-project-automation github-project-automation bot moved this to Todo in Nachet Apr 9, 2024
@MaxenceGui MaxenceGui added the user-visible User visible enhancement or features - must QA label Apr 9, 2024
@MaxenceGui MaxenceGui changed the title Repeat the process with Swin Transformer. Detect the right seed, but hallucinate a fourth one. Swin Transformer hallucinate non-existant seed Apr 10, 2024
@TaranMeyer
Copy link

Just a further example:
Screenshot:
Image
(Correct ID for the two seeds is Bromus japonicus)

Original image:
Image

I think the reprogramming a couple of weeks ago to allow the red boxes to overlap has allowed it to return a lot more of these "phantoms". Not sure what the solution is though :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user-visible User visible enhancement or features - must QA
Projects
Status: Todo
Development

No branches or pull requests

2 participants