Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to adapt the package to colour-correct underwater images. I trained a YOLO8 model as described in your blog post to detect the chart I am using. Thanks for the detailed explanations! The model works great, I tested it, and it always detects my chart.
However, when I add this model to the
detect_colour_checkers_inference()
function as described in the blog post, it often does not work, although the chart is always detected correctly by the YOLO model.After applying
detect_colour_checkers_inference()
, sometimes, the chart is 90° or 270° and thus the colours are not detected correctly. Here, I added a folder with example images, my model, the results from the Yolo model for these images, and my code.Two additional strange things I encountered when using your code from the model:
inferencer_agpl()
function, I had to delete the lineimage = image.astype(np.float32)
, otherwise I get this error:AttributeError: 'str' object has no attribute 'astype'
device="mps"
to the YOLOmodel()
function. Otherwise, I get different and much worse results when I use this line. No idea why.Could you have a look at my code and indicate to me some steps that I could take to improve it?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions