Open Jonathhhan opened 3 months ago
@Jonathhhan I don't understand this case you're raising. Are you referring to reloading the model? Or deleting an already created context and creating a new one? Or that when you close the program and then reopen it, taesd doesn't work? I'm not grasping it.
Anyway, it seems to be a bug when reading the file; sometimes, for no apparent reason, tellg
returns -1, so I don't trust checking the file if it's a safetensor this way.
@FSSRepo I mean reloading the model, which also means deleting a created context and creating a new one. Actually you can also see it in the result (a black image) - same as without an taesd model + sdxl. The main stuff happens here: https://github.com/Jonathhhan/ofxStableDiffusion/blob/main/ofxStableDiffusionExample/src/stableDiffusionThread.cpp
If I load a second model (reload the
sd_ctx
)teasd
does not work anymore (it results in a black output image).This happens while loading the first sd_ctx:
And this while loading the second: