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

Completed tasks 1-4 for Bootcamp #88

Closed
wants to merge 2 commits into from
Closed

Conversation

Black-nya
Copy link

No description provided.

Copy link
Member

@maxlou05 maxlou05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

# Create BoundingBox object and append to list
result, box = bounding_box.BoundingBox.create(boxes_cpu[i])
if result:
bounding_boxes.append(box)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally in statistics, we would discard the entire data point (the whole image) if something went wrong with it (a bounding box failed).
(You do not need to change anything, just something to think about)

)
elif self.stage == 1:
self.stage += 1
closest_landing_pad_dx, closest_landing_pad_dy = 120, 120
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to be very reliable in the real world. Please either use float(infinity) or think of a different way you can circumvent using infinity.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review! Sorry, I kind of cheated a bit because the grid is only 120 by 120. I have fixed it and used float('inf') instead.

@maxlou05
Copy link
Member

Approved

@maxlou05 maxlou05 closed this Sep 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants