IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

[BUG]

Open leij0318 opened this issue 1 year ago • 1 comments

Model Which model are you using? Sanster/AnyText

Describe the bug Hello, IOPaint developer!I used the latest iopaint1.4.3 yesterday, but I found something strange and I don’t know if it is a bug.

I installed iopaint-1.4.3 yesterday. When I used the eraser model and rembg plugin, I found that the huggingface model could not be downloaded to the set model_dir directory, but the torch model could be downloaded. So I manually downloaded the model and set the parameter local_files_only=true so that it could import the model correctly.

Today, I found that DEFAULT_MODEL_DIR is the system environment variable XDG_CACHE_HOME by checking the code, so I set the XDG_CACHE_HOME environment variable to use the diffusion model--Sanster/AnyText, but when I ran win_start.bat, I found that the location where the downloaded model was saved became the model_dir directory I set. I terminated the program and manually downloaded the model Sanster/AnyText and restarted the computer to run the program, but the result was still the same, which also shows that the XDG_CACHE_HOME environment variable I set according to the code is not effective.

I don't know if this is a problem with the Windows system or the iopaint code, but the models I downloaded manually using the huggingface-cli module are correctly placed in the directory set by the environment variable XDG_CACHE_HOM. So I'm specifically to inform you!

Screenshots image image

System Info windows10 22H2 pro

Software version used

  • iopaint: 1.4.3
  • pytorch: 2.4.1-cu124
  • CUDA: 12.4

leij0318 avatar Oct 11 '24 05:10 leij0318

@Sanster

leij0318 avatar Oct 11 '24 05:10 leij0318

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 15 '25 01:01 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jan 30 '25 01:01 github-actions[bot]