lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
40.99k stars 5.75k forks source link

[Bug]: Checkpoint cannot be loaded #3673

Open JohnneyTexas opened 1 week ago

JohnneyTexas commented 1 week ago

Checklist

What happened?

As the number of checkpoints increased, I created directories for SD, SDXL, SD3, and Flux and moved the checkpoints to each directory. As a result, in Fooocus, when selecting a checkpoint, Dir/Checkpoint.safetensors appears in the drop-down list. However, when I press the Generate button after selecting a checkpoint, the generation appears to start normally on the screen, but the console does not load the checkpoint at all. In addition, no error is output, and the system remains stopped. If the checkpoint is moved back to its original location, it works normally. Note that this issue does not occur in UIs other than Foooge (A1111, Forge, SwarmUI, Inference).

Steps to reproduce the problem

Move a checkpoint to lower directories

What should have happened?

Checkpoint must be loaded

What browsers do you use to access Fooocus?

Mozilla Firefox

Where are you running Fooocus?

Locally

What operating system are you using?

No response

Console logs

none

Additional information

No response

rururu243 commented 4 days ago

ive also occured this, the solution was easy, just change the name of the safetensors you want in the default.json in the presets folder in the fooocus/presets, change the checkpoint to the one you want, like ponyxl.safetensors then you go in the config.txt and do the same: { "path_checkpoints": [ "C:\Programs\anaconda3\envs\Fooocus\models\checkpoints" ], "path_loras": [ "C:\Programs\anaconda3\envs\Fooocus\models\loras" ], "default_model": "ponyxl.safetensors", <----- if the default model dosent say in the config you add it just like this,

and if that isnt enough you change the config_modification_tutorial.txt

where it says default_model:"ponyxl.safetensors"

well this worked for me and i dont have to wait 30 minutes for the damn loading of the models, Hope this helped.