mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
562 stars 150 forks source link

checkpoints.corrupted #42

Closed thiner closed 10 months ago

thiner commented 10 months ago

Describe the problem The models/checkpoints folder is renamed to models/checkpoints.corrupted while API start to work. But the checkpoint files are all good in fact. Because it works in Fooocus by removing the suffix corrupted from the folder name. I think this is a bug of model files validation.

EvilBT commented 10 months ago

把default_refiner_model_name = ''替换成default_refiner_model_name = 'None',不要'', 要'None' if name == 'None': print(f'Refiner unloaded.') return

konieshadow commented 10 months ago

Describe the problem The models/checkpoints folder is renamed to models/checkpoints.corrupted while API start to work. But the checkpoint files are all good in fact. Because it works in Fooocus by removing the suffix corrupted from the folder name. I think this is a bug of model files validation.

Are you using realistic preset? Or manually set default_refiner_model_name to empty string?

thiner commented 10 months ago

Describe the problem The models/checkpoints folder is renamed to models/checkpoints.corrupted while API start to work. But the checkpoint files are all good in fact. Because it works in Fooocus by removing the suffix corrupted from the folder name. I think this is a bug of model files validation.

Are you using realistic preset? Or manually set default_refiner_model_name to empty string?

No, I didn't use the realistic preset. I copied user_path_config.txt from Fooocus, and the relevant settings as below:

"default_model": "juggernautXL_version6Rundiffusion.safetensors",
"default_refiner": "None",

Fooocus is running well with these settings.

thiner commented 10 months ago

By the way, my Fooocus version: Fooocus version: 2.1.774 Could it be a version conflict?

thiner commented 10 months ago

把default_refiner_model_name = ''替换成default_refiner_model_name = 'None',不要'', 要'None' if name == 'None': print(f'Refiner unloaded.') return

Thanks for your answer, but I didn't modify any code. I just copied user_path_config.txt from Fooocus.

konieshadow commented 10 months ago

By the way, my Fooocus version: Fooocus version: 2.1.774 Could it be a version conflict?

It should not. It seems like an issue with Fooocus-API, and it will be fix it soon.

konieshadow commented 10 months ago

@thiner Fixed by Fooocus-API v0.3.7.

thiner commented 10 months ago

Verified and it's fixed.

Thanks!