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

update Annotator.masks() #26

Merged
merged 5 commits into from
Sep 5, 2022
Merged

update Annotator.masks() #26

merged 5 commits into from
Sep 5, 2022

Conversation

Laughing-q
Copy link

  • Annotator.masks() supports both gpu plotting(inference size) and cpu plotting(native size) now, also support both opencv and PIL.
  • add a new argparse sign --retine-masks to use cpu plotting.
  • add an additional arg img_gpu in Annotator.masks() and keep the initialization of im0.

I was trying to update the plot in val with Annotator.masks(), but it'll make a lot changes. Since the image in val is the big one composed with many small images, it's not easy to plot its masks as once. So I just keep it as before.

@AyushExel AyushExel merged commit 7cdda21 into AyushExel:instance_seg Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants