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

Questions about the calculation of crop_parameters #21

Open
strongBrave opened this issue Oct 25, 2024 · 0 comments
Open

Questions about the calculation of crop_parameters #21

strongBrave opened this issue Oct 25, 2024 · 0 comments

Comments

@strongBrave
Copy link

strongBrave commented Oct 25, 2024

Thanks for this great work! I am currently studying the code related to establishing a dataset, and I have encountered some confusion regarding the formula used to calculate the crop parameters, particularly the variables cc and crop_width. These parameters seem to appear rather abruptly, and I am struggling to understand their derivation within the dataset creation process.

Given the importance of this operation to this work, I would greatly appreciate it if you could kindly share any relevant resources that might explain how these parameters are calculated and utilized. Your guidance would be invaluable in helping me move forward with this project.

Additionally, in the line of code crop_width = 2 * s * (bbox[2] - bbox[0]) / length, you are using (bbox[2] - bbox[0]), which represents the width of the original bounding box (bbx), to calculate the width of the cropped bounding box. However, since the original bounding box has been transformed into a square and subsequently jittered, would it be more appropriate to use the width of the jittered bounding box, calculated as bbox_jitter[2] - bbox_jitter[0] for this operation?

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

1 participant