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

why need to add 0.5 #12060

Open
SparKgod1 opened this issue Dec 5, 2024 · 1 comment
Open

why need to add 0.5 #12060

SparKgod1 opened this issue Dec 5, 2024 · 1 comment
Assignees

Comments

@SparKgod1
Copy link

https://mmdetection.readthedocs.io/en/latest/user_guides/train.html#train-with-customized-datasets:~:text=poly%20%3D%20%5B(x%20%2B%200.5%2C%20y%20%2B%200.5)%20for%20x%2C%20y%20in%20zip(px%2C%20py)%5D
Why this example of converting data format to 'coco' need to add 0.5?
Does it affect my training if I ignore this?
looking forward to your reply~

@SparKgod1
Copy link
Author

here

  def convert_balloon_to_coco(ann_file, out_file, image_prefix):
  ...
  poly = [(x + 0.5, y + 0.5) for x, y in zip(px, py)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants