Skip to content

Conversation

@NicolasHug
Copy link
Member

CC @malfet @atalman following up on our offline conversation, feel free to merge this PR or to submit a quick fix by pinning the numpy version as discussed.

if img_png.ndim != 3 or img_png.numel() < 100:
raise RuntimeError(f"Unexpected shape of img_png: {img_png.shape}")


Copy link
Member Author

Choose a reason for hiding this comment

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

these are drive-bys from pre-commit

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, they come from #7359.

Copy link
Contributor

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks!

if img_png.ndim != 3 or img_png.numel() < 100:
raise RuntimeError(f"Unexpected shape of img_png: {img_png.shape}")


Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, they come from #7359.

Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

LGTM. By the way, did some digging: somehow those failures are triggered by pytest environment: running the same script outside of pytest did not result in the failure.

@pmeier
Copy link
Contributor

pmeier commented Mar 1, 2023

It seems the issue is gone after #7189:

https://github.com/pytorch/vision/actions/runs/4308089284/jobs/7513938565#step:10:2643

I'll send a separate PR for the lint fixes. But otherwise, we can probably close this one?

@NicolasHug NicolasHug changed the base branch from main to release/0.15 March 2, 2023 10:21
@NicolasHug NicolasHug changed the base branch from release/0.15 to main March 2, 2023 10:21
@NicolasHug
Copy link
Member Author

Thanks all. The [surfacing of the] issue is gone on main as @pmeier described just above so I'll close this one and open the same PR against release/0.15 instead. (we could also cherry-pick #7189 into the release branch but that sounds riskier)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants