Why do I get this Attributeerror on Fooocus, with Input image? #2156
Closed
trialsnabhi
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can anyone help me why do I get this error on Foocus whenever I use an Input image (either as Image Prompt or for Inpainting) ?
Traceback (most recent call last):
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1429, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1239, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "/home/studio-lab-user/Fooocus-Sagemaker-Studio-Lab/Fooocus/modules/gradio_hijack.py", line 278, in preprocess
im = processing_utils.decode_base64_to_image(x)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/processing_utils.py", line 59, in decode_base64_to_image
img = Image.open(BytesIO(base64.b64decode(image_encoded)))
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/Image.py", line 3288, in open
"""
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/Image.py", line 3274, in _open_core
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 799, in jpeg_factory
im = JpegImageFile(fp, filename)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/ImageFile.py", line 116, in init
self._open()
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 380, in _open
handler(self, i)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 211, in SOF
self.mode = "RGB"
AttributeError: can't set attribute 'mode'
Traceback (most recent call last):
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1429, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1239, in preprocess_data
processed_input.append(block.preprocess(inputs[i]))
File "/home/studio-lab-user/Fooocus-Sagemaker-Studio-Lab/Fooocus/modules/gradio_hijack.py", line 278, in preprocess
im = processing_utils.decode_base64_to_image(x)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/gradio/processing_utils.py", line 59, in decode_base64_to_image
img = Image.open(BytesIO(base64.b64decode(image_encoded)))
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/Image.py", line 3288, in open
"""
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/Image.py", line 3274, in _open_core
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 799, in jpeg_factory
im = JpegImageFile(fp, filename)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/ImageFile.py", line 116, in init
self._open()
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 380, in _open
handler(self, i)
File "/home/studio-lab-user/.conda/envs/fooocus/lib/python3.10/site-packages/PIL/JpegImagePlugin.py", line 211, in SOF
self.mode = "RGB"
AttributeError: can't set attribute 'mode'
Beta Was this translation helpful? Give feedback.
All reactions