kuprel / min-dalle

min(DALL·E) is a fast, minimal port of DALL·E Mini to PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lossless option for the replicate predictor.

ImagicTheCat opened this issue · comments

Hi,

Right now the output is lossy with JPG, it would be nice to have an option to output to a lossless format like PNG (if it is possible).

Thanks.

Good idea I'll make it an option

Ok, the latest version outputs a png for the final image

Nice, thanks.

It actually adds up to 10 seconds (for 9x9) saving as png so I'm making it an argument that defaults to false. You will have to set output_png to true to get a png once this new version has uploaded.

In my workflow, I now export to uncompressed TGA files. Files are ~2x the size of PNG (AI output is messy), but it should be faster. In most cases less compute will probably be more valuable than twice the bandwidth (rental cost, responsiveness). But it seems unsupported by browsers, so I don't know how it could work with replicate.