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

Simplify numpy function call in object detection tutorial #1038

Closed
ashok-arjun opened this issue Jun 23, 2020 · 4 comments
Closed

Simplify numpy function call in object detection tutorial #1038

ashok-arjun opened this issue Jun 23, 2020 · 4 comments
Assignees
Labels
docathon-h1-2023 A label for the docathon in H1 2023 easy torchvision Issues relating to image/video tutorials

Comments

@ashok-arjun
Copy link

In the second code block in the tutorial, the line pos = np.where(masks[i]) has been used to get the indices of the non zero points in the image. But numpy documentation for np.where() advises to use np.nonzero() when there is only one argument for np.where(), and it also makes the code more readable.

@holly1238 holly1238 added the torchvision Issues relating to image/video tutorials label Jul 27, 2021
@moDallel
Copy link

Hello !
We are a group of students in second year in engineering school. We are currently interested in resolving this issue as a school project. Please let me know, if we can have your permision to contribute on this issue.

@svekars svekars added easy docathon-h1-2023 A label for the docathon in H1 2023 labels May 31, 2023
@JoseLuisC99
Copy link
Contributor

/assigntome

carljparker pushed a commit that referenced this issue Jun 1, 2023
* refactored train loop in trainingyt.py, resolves issue #2230

* Simplified numpy function call, resolves issue #1038
@JoseLuisC99
Copy link
Contributor

I consider that #2372 resolves this issue.

@sekyondaMeta
Copy link
Contributor

Closing this issue as it is resolved by PR #2372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docathon-h1-2023 A label for the docathon in H1 2023 easy torchvision Issues relating to image/video tutorials
Projects
None yet
Development

No branches or pull requests

6 participants