Closed DrSamLewis closed 4 years ago
Hi @DrSamLewis ! Thank you for trying the tutorial!
The original images of this sample dataset don't have an equal size, you can view them here. You are right I modify them for the network training and prediction by cropping or extending them all to 90x90 pixels (length of the worm for this dataset). But this process also removes the background pixels by setting them to a uniform color. To visualize the final results, I overlay the skeleton on top of the original images.
For the Tierpsy dataset, the videos are 640x480 pixels and I use for the network a crop size of 128x128 pixels focused on the worm for example. But I still want to visualize the result on the original images of 640x480.
If you really want to view this sample dataset as images of the same size, you can use ImageMagick. In Google Colab you can use:
!apt install imagemagick
And then to resize the images to 150x150 pixels (example):
!mogrify -format png -background black -gravity northwest -extent 150x150 experiments/sample_data/results/sample_data/images_results/*.png
It will look like that:
Does it answer your question? Thanks!
I will close this issue if that's ok! Don't hesitate to ask more questions!
I'm going through the WormPose 0.1.15 Tutorial Notebook in Colab (https://github.com/iteal/wormpose/blob/master/examples/tutorial_sample_data.ipynb) using your provided sample_data (https://github.com/iteal/wormpose_data.git). The tutorial ran without errors. However, when I export images_results.zip the frames are all different sizes, and thus cannot be loaded into my video player software.
This line: print(f"The processed images are all set to the size: ({processed_image.shape[0]}px, {processed_image.shape[1]}px).")
returns this text: "The processed images are all set to the size: (90px, 90px)."
So I do not understand why the .png files in images_results.zip are different sizes.