zeke / aimg

🧑‍🎨 A Node.js CLI for generating AI images with Replicate and saving them to disk.
19 stars 0 forks source link

figure out the version only once, instead of repeatedly #6

Open zeke opened 1 month ago

zeke commented 1 month ago

This works but it's not cool:

$ aimg "$(cat PROMPT.md)" --model apolinario/flux-tarot-v1 --outputdir outputs --count 3 --aspect_ratio 1:1 --output_format jpg

Generating images...
Received 422 error from the Replicate API. Attempting to fetch version data for apolinario/flux-tarot-v1...
Received 422 error from the Replicate API. Attempting to fetch version data for apolinario/flux-tarot-v1...
Received 422 error from the Replicate API. Attempting to fetch version data for apolinario/flux-tarot-v1...

Rerunning with versioned model: apolinario/flux-tarot-v1:6c4ebdf049df552f8c02b3a7bbb3afec3d37b20924282bab8744f1168b6de470
Rerunning with versioned model: apolinario/flux-tarot-v1:6c4ebdf049df552f8c02b3a7bbb3afec3d37b20924282bab8744f1168b6de470
Rerunning with versioned model: apolinario/flux-tarot-v1:6c4ebdf049df552f8c02b3a7bbb3afec3d37b20924282bab8744f1168b6de470