mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +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)
|
x = (x * 255).astype(mx.uint8)
|
||||||
|
|
||||||
# Save them to disc
|
# Save them to disc
|
||||||
im = Image.fromarray(x.__array__())
|
im = Image.fromarray(np.array(x))
|
||||||
im.save(args.output)
|
im.save(args.output)
|
||||||
|
Loading…
Reference in New Issue
Block a user