Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not see someting in interface ,when I search http://localhost:8080 #517

Open
leizhu1989 opened this issue Apr 30, 2024 · 8 comments
Open

Comments

@leizhu1989
Copy link

Model
Which model are you using?

Describe the bug
A clear and concise description of what the bug is.

Screenshots
If applicable, add screenshots to help explain your problem.

System Info
Software version used

  • lama-cleaner:
  • pytorch:
  • CUDA:
@leizhu1989
Copy link
Author

command:iopaint start --model-dir=D:\project\OCR\PaddleOCR\model --model=lama --device=cpu --port=8080
os: windows11
conda env: cuda118+torch2.1.2

result:
2024-04-30 14:30:11.744 | INFO | iopaint.runtime:setup_model_dir:82 - Model directory: D:\project\OCR\PaddleOCR\model

  • Platform: Windows-10-10.0.22631-SP0
  • Python version: 3.11.7
  • torch: 2.1.2+cu118
  • torchvision: 0.16.2+cu118
  • Pillow: 9.5.0
  • diffusers: 0.26.3
  • transformers: 4.36.2
  • opencv-python: 4.9.0.80
  • accelerate: 0.24.1
  • iopaint: 1.2.3
  • rembg: N/A
  • realesrgan: N/A
  • gfpgan: N/A

WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.1.2+cu118)
Python 3.11.7 (you have 3.11.7)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
{
"host": "127.0.0.1",
"port": 8080,
"inbrowser": false,
"model": "lama",
"no_half": false,
"low_mem": false,
"cpu_offload": false,
"disable_nsfw_checker": false,
"local_files_only": false,
"cpu_textencoder": false,
"device": "cpu",
"input": null,
"output_dir": null,
"quality": 95,
"enable_interactive_seg": false,
"interactive_seg_model": "vit_b",
"interactive_seg_device": "cpu",
"enable_remove_bg": false,
"remove_bg_model": "briaai/RMBG-1.4",
"enable_anime_seg": false,
"enable_realesrgan": false,
"realesrgan_device": "cpu",
"realesrgan_model": "realesr-general-x4v3",
"enable_gfpgan": false,
"gfpgan_device": "cpu",
"enable_restoreformer": false,
"restoreformer_device": "cpu"
}
2024-04-30 14:30:15.490 | INFO | iopaint.model_manager:init_model:38 - Loading model: lama
2024-04-30 14:30:15.490 | INFO | iopaint.helper:load_jit_model:107 - Loading model from: D:\project\OCR\PaddleOCR\model\torch\hub\checkpoints\big-lama.pt
INFO: Started server process [26856]
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:61603 - "GET / HTTP/1.1" 200 OK
INFO: 127.0.0.1:61603 - "GET /assets/index-NdvY_nlh.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:61604 - "GET /assets/index-p0ivNJpo.css HTTP/1.1" 200 OK
INFO: 127.0.0.1:61603 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:61603 - "GET / HTTP/1.1" 304 Not Modified
INFO: 127.0.0.1:61603 - "GET / HTTP/1.1" 304 Not Modified

@leizhu1989 leizhu1989 changed the title when I can not see someting in interface ,when I search http://localhost:8080 Apr 30, 2024
@Wang-Thunder
Copy link

Having the same issue.
image

@Desm0nt
Copy link

Desm0nt commented May 3, 2024

Same issue

@Leige458
Copy link

Leige458 commented May 7, 2024

The same is true for the latest version.
Upon checking on browser console , I could see this error

Failed to load module script:index-KHQKnmqj.js:1: 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.

GET http://127.0.0.1:8080/favicon.ico inject.js:364
net::ERR_CONNECTION_REFUSED

So I manually added ico to the head part of index.html. As a result, ico-related errors occurred, but the page was still blank when I opened it.

I also did not solve my problem by disabling the browser cache as mentioned in other forums:

Below is my command line output

{
    "host": "127.0.0.1",
    "port": 8080,
    "inbrowser": true,
    "model": "lama",
    "no_half": false,
    "low_mem": false,
    "cpu_offload": false,
    "disable_nsfw_checker": false,
    "local_files_only": true,
    "cpu_textencoder": false,
    "device": "cuda",
    "input": "input_image_dir",
    "output_dir": "D:\\Desktop\\AI\\IOpaint_Out\\IOPaint-v1\\output_image_dir",
    "quality": 95,
    "enable_interactive_seg": true,
    "interactive_seg_model": "sam_hq_vit_b",
    "interactive_seg_device": "cuda",
    "enable_remove_bg": true,
    "remove_bg_model": "briaai/RMBG-1.4",
    "enable_anime_seg": true,
    "enable_realesrgan": true,
    "realesrgan_device": "cuda",
    "realesrgan_model": "realesr-general-x4v3",
    "enable_gfpgan": true,
    "gfpgan_device": "cuda",
    "enable_restoreformer": true,
    "restoreformer_device": "cuda"
}
2024-05-08 12:47:31.330 | INFO     | iopaint.api:_build_file_manager:357 - Input is directory, initialize file manager input_image_dir
2024-05-08 12:47:31.336 | INFO     | iopaint.plugins:build_plugins:32 - Initialize InteractiveSeg plugin
2024-05-08 12:47:31.337 | INFO     | iopaint.plugins.interactive_seg:_init_session:62 - SegmentAnything model path: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\sam_hq_vit_b.pth
<All keys matched successfully>
2024-05-08 12:47:33.579 | INFO     | iopaint.plugins:build_plugins:38 - Initialize RemoveBG plugin
2024-05-08 12:47:37.937 | INFO     | iopaint.plugins:build_plugins:42 - Initialize AnimeSeg plugin
2024-05-08 12:47:38.241 | INFO     | iopaint.helper:load_model:123 - Loading model from: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\isnetis.pth
2024-05-08 12:47:38.400 | INFO     | iopaint.plugins:build_plugins:46 - Initialize RealESRGAN plugin: realesr-general-x4v3, cuda
2024-05-08 12:47:39.896 | INFO     | iopaint.plugins.realesrgan:_init_model:73 - RealESRGAN model path: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\realesr-general-x4v3.pth
2024-05-08 12:47:39.949 | INFO     | iopaint.plugins:build_plugins:56 - Initialize GFPGAN plugin
2024-05-08 12:47:39.949 | INFO     | iopaint.plugins:build_plugins:58 - Use realesrgan as GFPGAN background upscaler
2024-05-08 12:47:40.074 | INFO     | iopaint.plugins.gfpgan_plugin:__init__:21 - GFPGAN model path: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\GFPGANv1.4.pth
2024-05-08 12:47:42.017 | INFO     | iopaint.plugins:build_plugins:69 - Initialize RestoreFormer plugin
2024-05-08 12:47:42.018 | INFO     | iopaint.plugins.restoreformer:__init__:21 - RestoreFormer model path: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\RestoreFormer.pth
Working with z of shape (1, 256, 16, 16) = 65536 dimensions.
2024-05-08 12:47:43.692 | INFO     | iopaint.model_manager:init_model:46 - Loading model: lama
2024-05-08 12:47:43.693 | INFO     | iopaint.helper:load_jit_model:107 - Loading model from: D:\Desktop\AI\IOpaint_Out\IOPaint-v1\models\torch\hub\checkpoints\big-lama.pt
INFO:     Started server process [12152]
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:13230 - "GET /favicon.ico HTTP/1.1" 200 OK
INFO:     127.0.0.1:13230 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:13230 - "GET / HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:13230 - "GET /favicon.ico HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:13230 - "GET / HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:13230 - "GET /favicon.ico HTTP/1.1" 304 Not Modified
INFO:     127.0.0.1:13745 - "GET / HTTP/1.1" 200 OK
INFO:     127.0.0.1:13745 - "GET /assets/index-KHQKnmqj.js HTTP/1.1" 200 OK
INFO:     127.0.0.1:13745 - "GET /assets/index-0foJStMW.css HTTP/1.1" 200 OK
INFO:     127.0.0.1:13745 - "GET /favicon.ico HTTP/1.1" 200 OK

@Sanster How to solve this?

@leizhu1989
Copy link
Author

I change to linux , then normal

@Saaalih2g
Copy link

Saaalih2g commented May 8, 2024 via email

@GiustiRo
Copy link

GiustiRo commented Jun 1, 2024

I change to linux , then normal

Same, I was running it on CMD instead of WSL on windows. Now it works ok

@Saaalih2g
Copy link

Saaalih2g commented Jun 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants