replicate / cog-flux

Cog inference for flux models
https://replicate.com/black-forest-labs/flux-dev
Apache License 2.0
272 stars 28 forks source link

Add 3:4 aspect ratios #16

Closed fofr closed 1 month ago

fofr commented 1 month ago

Also extracts ratios out as a constant

daanelson commented 1 month ago

looks good to me.

had a separate list of ratios as an argument to choices b/c I wanted to preserve the ordering of the aspect ratios for the generated schema - but apparently dict.keys() has returned keys in insertion order since python 3.7. TIL.