question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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:

img1 copy

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
3DTOPOcommented, May 25, 2022

Thanks.

I just assumed it worked since there is an example.

3reactions
lucidrainscommented, May 25, 2022

ohh the example is for training, and there are no publicly available trained model yet

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found