mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-25 01:41:19 +08:00
Fix SD image conversion (#266)
This commit is contained in:
parent
6e6eff326e
commit
6759dfddf1
@ -52,5 +52,5 @@ if __name__ == "__main__":
|
||||
x = (x * 255).astype(mx.uint8)
|
||||
|
||||
# Save them to disc
|
||||
im = Image.fromarray(x.__array__())
|
||||
im = Image.fromarray(np.array(x))
|
||||
im.save(args.output)
|
||||
|
Loading…
Reference in New Issue
Block a user