-
Notifications
You must be signed in to change notification settings - Fork 125
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
Pink line generated from the top left corner of the image #38
Comments
I grappled with this for a few hours. I started with your suggestion tol = 1e-3
cleaned = []
for x, y in zip(sc[::2], sc[1::2]):
if x > tol and y > tol:
cleaned.append(x)
cleaned.append(y)
annotation["segmenation"].append(cleaned) It's not particularly compact but it seems to do the job. The pair of coordinates at the origin appears to be an artifact of the call to |
it is also have some problem |
When I view the image, there is a pink line generated from the top left corner of the image. I tried to investigate the issue by printing variable "sc" from the file dataset_explorer.py, and I found a random value "6.91669498947497e-310, 6.91669498947497e-310" generated at the beginning. To overcome this issue, I added this line "sc = [x for x in sc if x > 0.1]" in the file dataset_explorer.py.
Screenshot:
Please refer to the attached screenshots for better understanding.
Expected Outcome:
The pink line should not be generated from the top left corner of the image.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: