Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from johnnylu305/main
Browse files Browse the repository at this point in the history
Save as png format instead of jpg format
  • Loading branch information
jeongyw12382 committed Jan 29, 2023
2 parents ac10296 + 326bc7f commit 31d7469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/store_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def norm8b(x):

def store_image(dirpath, rgbs):
for (i, rgb) in enumerate(rgbs):
imgname = f"image{str(i).zfill(3)}.jpg"
imgname = f"image{str(i).zfill(3)}.png"
rgbimg = Image.fromarray(to8b(rgb.detach().cpu().numpy()))
imgpath = os.path.join(dirpath, imgname)
rgbimg.save(imgpath)
Expand Down

0 comments on commit 31d7469

Please sign in to comment.