mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
two minor fixes (#335)
This commit is contained in:
@@ -69,5 +69,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)
|
||||
|
Reference in New Issue
Block a user