Sanster / iopaint-docs

https://iopaint-docs.vercel.app
MIT License
2 stars 2 forks source link

Configuration error #13

Open zbruce8186 opened 4 months ago

zbruce8186 commented 4 months ago

image How to solve it?

Sanster commented 4 months ago

Hi, the error in your screenshot will not affect the use, so don't worry. If there are no network issues, the subsequent process can continue.

zbruce8186 commented 4 months ago

image set PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:? After setting according to the prompt, it has changed again, and the setting is repeated, how should it be set?

Sanster commented 4 months ago

From your log, it seems that PYTORCH_CUDA_ALLOC_CONF may not be useful.

Erase model

If you are using an erasure model, such as lama, it is recommended to set the device to cpu

Diffusion model

If you are using a diffusion model, such as runwayml/stable-diffusion-inpainting, the memory usage is partly related to the parameters of the service startup. You can reduce memory consumption by enabling the following two parameters:

image image

On the other hand, the size of the resolution of the images being processed also affects memory usage. The higher the resolution of the image, the higher the memory usage. You can use cropper to inpaint a small area of the image. Here is an example of how to do this, you can refer to: https://www.iopaint.com/models#cropper

zbruce8186 commented 4 months ago

image Many options in the recommended model need to be downloaded from the Internet, Baidu Web disk has been downloaded, but some models from the Internet download prompt connection timeout, how to solve, thank you.

Sanster commented 4 months ago

Sorry for the late response, you can download the model files and configuration files manually from here. I have recorded a video demonstrating how to download one of the model files:

https://github.com/Sanster/iopaint-docs/assets/3998421/e47c054b-7525-4b74-a561-759fc75eda6f

The final directory structure looks like this:

image

If the link above cannot be downloaded, you can also try downloading from here: https://hf-mirror.com/runwayml/stable-diffusion-inpainting

lxwdesign1 commented 2 months ago

pipinstallrealesrgan

怎样才能正确安装realesrgan?

Sanster commented 2 months ago

pipinstallrealesrgan

怎样才能正确安装realesrgan?

能看一下启动时显示的各依赖库的版本吗?类似这种。

image

RealESRGAN 的问题可以尝试下这个 issue 里的方法