mrhan1993 / Fooocus-API

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

Error in Worker.py - Input-Output Error - see below #260

Closed miraculix95 closed 1 day ago

miraculix95 commented 3 months ago

Here the images were not created by my script kept on going ... the error happens at 09:41. I am using Foocus 2.30 Does anyone know this error?

Mar 25 09:39:16 pst9hxxwlbdr python3[830]: [Task Queue] Finish task, job_id=7133d0a9-e166-4647-a77b-5bbcb9e73ce2
Mar 25 09:39:16 pst9hxxwlbdr python3[830]: Requested to load SDXLClipModel
Mar 25 09:39:16 pst9hxxwlbdr python3[830]: Requested to load GPT2LMHeadModel
Mar 25 09:39:16 pst9hxxwlbdr python3[830]: Loading 2 new models
Mar 25 09:39:16 pst9hxxwlbdr python3[830]: INFO:     127.0.0.1:49946 - "POST /v2/generation/image-prompt HTTP/1.1" 200 OK
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 0.72 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Warning] Wrong lora model_name input: , using 'None'
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Task Queue] Waiting for task finished, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Task Queue] Task queue start task, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Adaptive CFG = 7.0
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Sharpness = 2.0
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] ControlNet Softness = 0.25
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] ADM Scale = 1.5 : 0.8 : 0.3
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] CFG = 2.0
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Seed = 200
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Downloading control models ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Loading control models ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Sampler = dpmpp_2m_sde_gpu - karras
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Steps = 30 - 15
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Initializing ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Loading models ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Refiner unloaded.
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Request to load LoRAs [('None', 0.0)] for model [/home/paperspace/fooocus-models/checkpoints/afroditexlNudePeople_20Bkdvae.safetensors].
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Requested to load SDXLClipModel
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: unload clone 1
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 1.35 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Processing prompts ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Encoding positive #1 ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Encoding positive #2 ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Encoding negative #1 ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Encoding negative #2 ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus] Image processing ...
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Detected 1 faces
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Requested to load CLIPVisionModelWithProjection
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 0.39 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Requested to load Resampler
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 0.13 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Requested to load To_KV
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 0.23 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Denoising Strength = 1.0
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Parameters] Initial Latent shape: Image Space (1280, 768)
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Preparation time: 4.05 seconds
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Sampler] refiner_swap_method = joint
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Requested to load SDXL
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 3.07 seconds
Mar 25 09:39:44 pst9hxxwlbdr python3[830]: [1.8K blob data]
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 10.1 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 20.1 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: Requested to load AutoencoderKL
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 1.65 seconds
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: Generating and saving time: 24.89 seconds
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Sampler] refiner_swap_method = joint
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: Requested to load SDXL
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 30.3 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:39:48 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 1.81 seconds
Mar 25 09:40:07 pst9hxxwlbdr python3[830]: [1.8K blob data]
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: ERROR:root:[Errno 5] Input/output error
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: Traceback (most recent call last):
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:   File "/home/paperspace/Fooocus-API/fooocusapi/worker.py", line 917, in process_generate
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:     yield_result(None, results, tasks, save_extension)
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:   File "/home/paperspace/Fooocus-API/fooocusapi/worker.py", line 118, in yield_result
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:     img_filename = save_output_file(img=im, extension=extension)
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:   File "/home/paperspace/Fooocus-API/fooocusapi/file_utils.py", line 53, in save_output_file
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:     Image.fromarray(img).save(file_path, format=extension,
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:   File "/home/paperspace/.local/lib/python3.10/site-packages/PIL/Image.py", line 2331, in save
Mar 25 09:41:25 pst9hxxwlbdr python3[830]:     fp.close()
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: OSError: [Errno 5] Input/output error
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 40.3 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: Requested to load AutoencoderKL
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: Loading 1 new model
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 50.4 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Fooocus Model Management] Moving model(s) has taken 1.39 seconds
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: Generating and saving time: 23.40 seconds
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 60.5 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 70.6 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 80.6 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 90.6 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 100.7 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 110.7 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Already waiting for 120.8 seconds, job_id=890d940f-e2e9-409a-829b-2fed7853d301
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: Worker error: [Errno 5] Input/output error
Mar 25 09:41:25 pst9hxxwlbdr python3[830]: [Task Queue] Finish task with error, job_id=890d940f-e2e9-409a-829b-2fed7853d301