IOPaint: [BUG] Webpage won't load

Model lama

Describe the bug I installed iopaint using the instructions in the readme on WSL2 (Ubuntu 22) running on Windows 11. I tried to load http://127.0.0.1:8080 in Chrome in Windows. It just loads for a long time showing nothing, then stops loading and continues to show nothing. My linux terminal shows some other stuff and then:

2024-02-08 16:09:29.669 | INFO     | iopaint.model_manager:init_model:39 - Loading model: lama
2024-02-08 16:09:29.670 | INFO     | iopaint.helper:load_jit_model:104 - Loading model from: /home/inhahe/.cache/torch/hub/checkpoints/big-lama.pt
INFO:     Started server process [5643]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
INFO:     127.0.0.1:56850 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:56850 - "GET /assets/index-NQyCh9rO.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:56864 - "GET /assets/index-iK_rIxV0.css HTTP/1.1" 200 OK
INFO:     127.0.0.1:53794 - "GET / HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:53794 - "GET /assets/index-NQyCh9rO.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:53808 - "GET /assets/index-iK_rIxV0.css HTTP/1.1" 200 OK
INFO:     127.0.0.1:53808 - "GET /favicon.ico HTTP/1.1" 404 Not Found

(the two GETs are because I tried reloading the page.)

System Info Software version used 1.0.4

  • lama-cleaner:
  • pytorch: 2.2.0
  • CUDA: n/a, it’s using the CPU.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Same issue here, Python 3.12, page cannot load(blank white page) on Chrome, Edge, Firefox, and Incognito or Private mode as well. Clear or disable cache doesn’t help to resolve the issue.

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.