Closed entmike closed 2 years ago
This is because downloading of the remote models is put into a separate thread to avoid the main thread to be blocked by the network (though normally very small, but for an env with bad/no network, this lag is significant).
To make sure remote download list always happens first, you can do the following code manually
from discoart.helper import models_list, get_remote_model_list
get_remote_model_list(model_list, force_print=False)
from discoart import create
create(..., diffusion_model='customized-blah-blah')
then you will find model_list
is up to date and create
just works without any problem
DISCOART_REMOTE_MODELS_URL=https://www.feverdreams.app/models.yaml
If I select
portrait_generator_v1.5_ema_0.9999_165000
as my diffusion model, the first job will fail with this error. (In either straight Python or NB cell)However if I run the same cell again (or loop in the case of a Python case), the 2nd attempt will work.