Saving Images
See original GitHub issueI’m not certain I am saving the tensor to images correctly.
All I seem to get is noise - albeit it does have some structure to it. I tried 10,000 time steps and still just noise.
from torchvision.utils import save_image
img1 = images[0] #torch.Size([3, 256, 256])
save_image(img1, 'img1.png’)
I’ve tried other ways such as:
from torchvision import transforms
im = transforms.ToPILImage()(images[0]).convert("RGB”)
im.save('img1.png’)
But I get results like this regardless:
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
550+ Savings Pictures | Download Free Images on Unsplash
Download the perfect savings pictures. Find over 100+ of the best free savings images. Free for commercial use ✓ No attribution required ✓...
Read more >3,000+ Free Savings & Money Images - Pixabay
3,434 Free images of Savings ... Find your perfect savings image. Free pictures to download and use in your next project. ... This...
Read more >Save a picture or other graphic as a separate file
Right-click the illustration that you want to save as a separate image file, and then click Save as Picture. · In the Save...
Read more >210929 Save Money Stock Photos, Images & Pictures
Download Save Money stock photos. Free or royalty-free photos and images. Use them in commercial designs under lifetime, perpetual & worldwide rights.
Read more >Photoshop Basics: Saving Images - GCF Global
With the image open in Photoshop, select File > Save As. Screenshot of Adobe Photoshop CC · A dialog box will appear. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks.
I just assumed it worked since there is an example.
ohh the example is for training, and there are no publicly available trained model yet