Hacker News new | past | comments | ask | show | jobs | submit login

I tried to use the linked Colab notebook to generate my own, and it appears to have been successful, but I don't see any way to view the generated images via the notebook interface. I'm not familiar with the notebook tool - have I missed something?



If the result is standard numpy 3d matrix then something like Pillow should be able to display the images.

Something like

  from matplotlib import pyplot as plt

  plt.imshow(matrix)

  plt.show()


I ran it locally and it generated images as PNGs in the "generated_images" directory (named 0.png, 42.png etc. after the seeds provided to the script). If it works and does the same in the notebook, you should be able to click the folder icon in the menu on the left to open the file browser, expand the "generated_images" directory, then click the ellipses next to each file to select "Download".




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: