ml-explore / mlx-examples

Examples in the MLX framework
MIT License
5.84k stars 831 forks source link

Error Using --model Argument #550

Closed USMCM1A1 closed 6 months ago

USMCM1A1 commented 6 months ago

I've tried both "--model sd" and "--sd" and get an unrecognized argument each time, e.g. in:

python txt2image.py "cinematic blah blah." --n_images 1 --model sd --n_rows 2

awni commented 6 months ago

The command runs fine for me.

Try pulling the repo as I'm guessing that you are using an outdated one. If that's not the case comment here and I can reopen / debug further.

USMCM1A1 commented 6 months ago

Pulling the repo solved the argument error, but now I get "module 'mlx.core.metal' has no attribute 'get_peak_memory'" going to open an issue for that.