Xinshuai Lyu

Results 5 comments of Xinshuai Lyu

Change to this: #@title Run this sell to set everything up print('\n> Cloning the repo') !git clone https://github.com/advimman/lama.git print('\n> Install dependencies') !pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 torchtext==0.15.2 !pip install -r...

[Copy_of_LaMa_inpainting.ipynb.zip](https://github.com/advimman/lama/files/12234678/Copy_of_LaMa_inpainting.ipynb.zip) 1. Download my colab 2. edit /content/lama/saicinpainting/training/modules/fake_fakes.py, you need to change **from kornia import SamplePadding** to **from kornia.constants import SamplePadding** 3. edit /content/lama/bin/predict.py, you need to change **device =...

Solved by: (1) edit /content/lama/saicinpainting/training/modules/fake_fakes.py, change from kornia import SamplePadding to from kornia.constants import SamplePadding (2) if your colab does not have gpu (torch.cuda.is_available() return false), edit /content/lama/bin/predict.py, change device...

[Copy_of_LaMa_inpainting.ipynb.zip](https://github.com/advimman/lama/files/12234678/Copy_of_LaMa_inpainting.ipynb.zip) 1. Download my colab 2. edit /content/lama/saicinpainting/training/modules/fake_fakes.py, you need to change **from kornia import SamplePadding** to **from kornia.constants import SamplePadding** 3. edit /content/lama/bin/predict.py, you need to change **device =...

@MacM2Pro Still work for me. But !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