kuprel / min-dalle

min(DALL·E) is a fast, minimal port of DALL·E Mini to PyTorch
MIT License
3.48k stars 257 forks source link

Something after 3e64e86 doubled image generation time #47

Closed w4ffl35 closed 2 years ago

w4ffl35 commented 2 years ago

still digging into it, but something after commit 3e64e86 doubled image generation time again. will update with more info if i can find it

w4ffl35 commented 2 years ago

I was finally able to start debugging this, first update:

I'm performing tests with flags mega False and is_reusable False at all times

will do a diff between 3e64e86 and b913b58 later today to try and determine what caused the generation to slow down

w4ffl35 commented 2 years ago

I'm guessing its related to https://github.com/kuprel/min-dalle/issues/39

https://github.com/kuprel/min-dalle/issues/39#issuecomment-1171061913

w4ffl35 commented 2 years ago

ok wow... this only applies if you're not using is_reusuable... :1st_place_medal: this is what i get for multitasking.

future programmer, learn from my pain: just turn that bool on and your images will generate in half the time when used in a loop