Skip to content

Commit

Permalink
fix: πŸ› tensor2pil
Browse files Browse the repository at this point in the history
  • Loading branch information
melMass committed Jul 21, 2023
1 parent aa551eb commit 8a59508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def tensor2pil(image: torch.Tensor) -> List[Image.Image]:

if batch_count > 1:
out = []
out.extend([tensor2pil(image[i]) for i in range(batch_count)])
for i in range(batch_count):
out.extend(tensor2pil(image[i]))
return out

return [
Expand Down

0 comments on commit 8a59508

Please sign in to comment.