Sanster / IOPaint

Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.

Home Page:https://www.iopaint.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network error

Reginald-L opened this issue · comments

Hi, thanks very much for your work. when I run the code base Development rules, got a network error, may I get your help?

  1. npm install --- under web_app
  2. add a .env.local file --- VITE_BACKEND=http://127.0.0.1:9999
  3. npm run dev ---- http://localhost:5173/
  4. error message on console
    image
    error1
commented

Front-end development requires starting the corresponding backend service.

pip install -r requirements.txt
python3 main.py --model lama --port 9999

Front-end development requires starting the corresponding backend service.

pip install -r requirements.txt
python3 main.py --model lama --port 9999

Thanks very much for your response, I tried these instructions, but the problem is still remain. It seems that the end program is not running.
I tried running 'python3 main.py --model lama --port 9999' both before and after npm run dev
image

more interesting thing is: when I run 'pip install iopaint' and 'iopaint start --model lama --port 9999', then localhost:5173 network error disappears.

commented

Executing python3 main.py --model lama --port 9999 and executing iopaint start --model lama --port 9999 should be the same. It looks like your command line didn't print any information when executing python3 main.py, I'm not sure what the issue is.

If you do not need to modify the backend code, executing iopaint start --model lama --port 9999 indeed works as well.

Executing python3 main.py --model lama --port 9999 and executing iopaint start --model lama --port 9999 should be the same. It looks like your command line didn't print any information when executing python3 main.py, I'm not sure what the issue is.

If you do not need to modify the backend code, executing iopaint start --model lama --port 9999 indeed works as well.

cool, thanks very much for your help and perfect work