Extension does not respect stable-diffusion-webui --data-dir option #191

Open
opened 2024-04-21 17:20:24 +02:00 by ryanwalder · 1 comment
ryanwalder commented 2024-04-21 17:20:24 +02:00 (Migrated from github.com)

Describe the bug

Extension looks in $installDir for data, not $dataDir. This leads to file not found errors because the extrension is checking the wrong location.

To Reproduce

  1. Install table-diffusion-webui webui
    • EG: /home/foobar/webui
  2. Launch table-diffusion-webui with --data-dir /tmp
  3. Install this extension
  4. Restart as normal
  5. Try to generate face model
    1. FaceSwapLap tab
    2. Build tab
    3. Add photos
    4. [Save]
    5. Check console, build fails with error:
      • FaceSwapLab - ERROR - Failed to build checkpoint [Errno 2] No such file or directory: '/home/foo/stable-diffusion-webui/extensions/sd-webui-faceswaplab/references/woman.png'
    6. Should be looking in /tmp/extensions/sd-webui-faceswaplab/references/woman.png

This can also be see with the location of the inswapper_128.onnx file being /home/foo/stable-diffusion-webui/models not /tmp/models

Note: /tmp only used as an example, not my actual data dir.

Expected behavior

Look in correct install location/data-dir

Desktop (please complete the following information):

  • OS: linux (debian)
  • Browser: FF/Chrome
  • Version: latest
**Describe the bug** Extension looks in `$installDir` for data, not `$dataDir`. This leads to file not found errors because the extrension is checking the wrong location. **To Reproduce** 1. Install table-diffusion-webui webui * EG: `/home/foobar/webui` 3. Launch table-diffusion-webui with `--data-dir /tmp` 4. Install this extension 5. Restart as normal 6. Try to generate face model 1. FaceSwapLap tab 2. Build tab 3. Add photos 4. [Save] 5. Check console, build fails with error: * `FaceSwapLab - ERROR - Failed to build checkpoint [Errno 2] No such file or directory: '/home/foo/stable-diffusion-webui/extensions/sd-webui-faceswaplab/references/woman.png'` 6. Should be looking in `/tmp/extensions/sd-webui-faceswaplab/references/woman.png` This can also be see with the location of the `inswapper_128.onnx` file being `/home/foo/stable-diffusion-webui/models` not `/tmp/models` Note: /tmp only used as an example, not my actual data dir. **Expected behavior** Look in correct install location/data-dir **Desktop (please complete the following information):** - OS: linux (debian) - Browser: FF/Chrome - Version: latest
MikeCoover commented 2024-09-20 05:12:18 +02:00 (Migrated from github.com)

Hello, the same thing happens to me... did you find a solution?

Hello, the same thing happens to me... did you find a solution?
Sign in to join this conversation.