Closed jadewu9 closed 1 year ago
就是这个colab的实例,想着看一看来的
也找不到这个保存修复后图像的代码
Same error as
Last year Colab worked great but I'm also having this error now. I think #240 and #243 solutions fix some part of the problems but inpainting still doesn't work.
Copy_of_LaMa_inpainting.ipynb.zip
@Xinshuai-Lyu I followed your changes but in the step of inpainting, I am still getting the error:
FileNotFoundError: [Errno 2] No such file or directory: '/content/output/1224276_original_mask.png'
Looking into the predict.log file in the outputs folder shows this:
[2023-11-02 11:30:50,933][saicinpainting.utils][WARNING] - Setting signal 10 handler <function print_traceback_handler at 0x7eda504a9ea0> [2023-11-02 11:30:50,933][__main__][CRITICAL] - Prediction failed due to [Errno 2] No such file or directory: '/content/lama/big-lama/config.yaml': Traceback (most recent call last): File "/content/lama/bin/predict.py", line 46, in main with open(train_config_path, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/content/lama/big-lama/config.yaml'
It seems that somehow, the folder /big-lama/ is not created and therefore I cannot fand any "config.yaml". Would appreciate some help here if anyone knows how to fix this!
@nikprt
!curl -L $(yadisk-direct https://disk.yandex.ru/d/ouP6l8VJ0HpMZg) -o big-lama.zip
The above link is broken, find this and replace it with:
!curl -LJO https://huggingface.co/smartywu/big-lama/resolve/main/big-lama.zip
@Xinshuai-Lyu thanks for your help! Do I just have to replace the model download you mentioned in the original colab or do I have to additionally make those 3 changes you mentioned before?
@nikprt
Follow my previous guide and
!curl -L $(yadisk-direct https://disk.yandex.ru/d/ouP6l8VJ0HpMZg) -o big-lama.zip
The above link is broken, find this and replace it with:
!curl -LJO https://huggingface.co/smartywu/big-lama/resolve/main/big-lama.zip
Have tested it this morning and it works.
Hope it can help you. Enjoy :)
That is amazing! TY @Xinshuai-Lyu
这个文件夹是在哪创建的,找了一通也没找见相关代码把这个文件夹创建出来