You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the same error when run locally or through colab.
FileNotFoundError: [Errno 2] No such file or directory: 'prediction/inpainting/Test1/Test1.png'
Traceback:
File "/usr/local/lib/python3.11/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/content/gdrive/MyDrive/MangaQuick-main/MangaQuick-main/MangaQuick.py", line 469, in <module>
text_injection(
File "/content/gdrive/MyDrive/MangaQuick-main/MangaQuick-main/components/text_injection.py", line 24, in text_injection
image = Image.open(f'prediction/inpainting/{name}/{mask_name}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/PIL/Image.py", line 3247, in open
fp = builtins.open(filename, "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The mask is found inside \segmentation\Test1... beside the original image. How do I configure it so that it creates/checks for the correct directory?
The text was updated successfully, but these errors were encountered:
Make sure Big Lama is downloaded and placed in the correct directory as specified in the GitHub README.
The inpainting mask (inpainting/) contains the cleaned image used for text injection.
The segmentation mask (segmentation/) contains the text mask—you can check it to verify its contents.
Your issue is that the inpainting image is not being generated. To troubleshoot:
Ensure Big Lama is correctly installed following the README instructions.
Verify the directory structure:
components/image_inpainting/models/big-lama/
Inside big-lama/, you should have:
models/
The configuration file
For colab is the same, I added a line of code to do move the folder automatically, so it should work now, you don't need to manually put the big-lama folder.
I'm getting the same error when run locally or through colab.
The mask is found inside \segmentation\Test1... beside the original image. How do I configure it so that it creates/checks for the correct directory?
The text was updated successfully, but these errors were encountered: