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

ResizeTransform returns broken image pixels #618

Closed
maitrai-maka opened this issue Jan 11, 2022 · 0 comments · Fixed by #622
Closed

ResizeTransform returns broken image pixels #618

maitrai-maka opened this issue Jan 11, 2022 · 0 comments · Fixed by #622
Assignees
Labels
BUG Something isn't working

Comments

@maitrai-maka
Copy link

maitrai-maka commented Jan 11, 2022

resized_image in ResizeTransform should be multiplied by 255.0 before returning. Otherwise the saved image is a just a black void. In the previous line image is divided by 255.0 before resize operation.

Details:

  • Macbook M1
  • Datumaro: 0.2.2

Replicate:

dataset.tranform(ResizeTransform, 1280, 720)
dataset.export(new_dir, 'yolo', save_images=True) 

The images are generated and saved but they are black voids.

On multiplying resized_image in the ResizeTranform- transform_item method the same code produces correct images.

@maitrai-maka maitrai-maka changed the title Bug in ResizeTransfrom (in tranform plugin). Bug in ResizeTransform (in tranform plugin). Jan 11, 2022
@zhiltsov-max zhiltsov-max added the BUG Something isn't working label Jan 11, 2022
@zhiltsov-max zhiltsov-max self-assigned this Jan 11, 2022
@zhiltsov-max zhiltsov-max changed the title Bug in ResizeTransform (in tranform plugin). ResizeTransform returns broken image pixels Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants