ar-cutpaste
ar-cutpaste copied to clipboard
Network request failed
i dont know, maybe i used wrong IP. Which IP I have to use instead [basnet_service_ip]?
Do you have the BASNet service running? you should use that specific IP. If you don't have it running then here you can find all the instructions -> https://github.com/cyrildiagne/basnet-http, otherwise double check the IP of that service.
Try to run the BASNet service with port 3000 or different from 8080 because it's already used by the other server. All this assuming that you are on the same local machine.
I'm having the same issue but then realized I didn't have the IP from BASNet as @buskerone mentioned. However, I don't seem to understand how the BASNet HTTP wrapper is supposed to give me that IP. I can't get the test input to run, let alone the build from source to work properly.
I suggest for you to run the BASNet HTTP on the docker.
With docker installed, you just need to follow:
git clone https://github.com/cyrildiagne/basnet-http
cd basnet-http
curl https://download.pytorch.org/models/resnet34-333f7ec4.pth -o resnet34-333f7ec4.pth
git clone https://github.com/NathanUA/BASNet
cd BASNet
mkdir -p saved_models/basnet_bsi/
curl https://evilnei.s3-sa-east-1.amazonaws.com/basnet.pth -o saved_models/basnet_bsi/basnet.pth
cd ..
docker build -t basnet .
docker run -ti -p 3000:80 basnet
After that, to test the wrapper you can do it using curl or postman
curl -F "data=@/img_path" http://localhost:3000 -o result.png or https://evilnei.s3-sa-east-1.amazonaws.com/basnet-wrap-postman.png
Commenting to address my previous comment, since I don't have a CUDA-capable GPU, I'm out of luck here.
@mjsevilla CUDA-capabale GPU is not a must, I think it would just speed up the processing. BASNet works on my Macbook with integrated Intel Iris chipset.
@poohitan I also tried both methods but always get the same empty response :( I have Radeon Pro 555 2 GB graphics on my MacBook pro.
@ShehanMadushanka I was getting empty responses as well. Someone here suggested to increase the RAM limit for Docker, and it helped, try this as well.
Here are my Docker resource limits: https://static.poohitan.com/images/1588924205819_Znimokekrana2020-05-0810.49.05.png
Hey, @poohitan You saved my life! It worked! Thank you very much. <3
@mjsevilla Try to increase resource limits in docker.
@ivoneijr am I missing something here?
I'm also unable to install Docker for Windows because I'm running Win10 Home?
if you running in windows 10 just connect your localhost ip 1 (ex : 192.168.100.8:3000) to server.tsx and ake sure that ip and port is exactly same to the IP in server/main.py (scroll down to the end)
for basnet-http i just create new localhost by using "netsh wlan start hostednetwork" and using this ip to basnet-http/main.py (scroll down to the end)
run the basnet-http run the server run the app
make sure when you run the server, BASNET_IP_SERVER is fill by basnet_http IP
hope you get help sorry if make english bad
if you running in windows 10 just connect your localhost ip 1 (ex : 192.168.100.8:3000) to server.tsx and ake sure that ip and port is exactly same to the IP in server/main.py (scroll down to the end)
for basnet-http i just create new localhost by using "netsh wlan start hostednetwork" and using this ip to basnet-http/main.py (scroll down to the end)
run the basnet-http run the server run the app
make sure when you run the server, BASNET_IP_SERVER is fill by basnet_http IP
hope you get help sorry if make english bad
Could you please tell my how to run the server? I've successfully started basnet, but don't know how to start the server.
Also, I don't know what to do with python main.py. How to I run that?
if you running in windows 10 just connect your localhost ip 1 (ex : 192.168.100.8:3000) to server.tsx and ake sure that ip and port is exactly same to the IP in server/main.py (scroll down to the end) for basnet-http i just create new localhost by using "netsh wlan start hostednetwork" and using this ip to basnet-http/main.py (scroll down to the end) run the basnet-http run the server run the app make sure when you run the server, BASNET_IP_SERVER is fill by basnet_http IP hope you get help sorry if make english bad
Could you please tell my how to run the server? I've successfully started basnet, but don't know how to start the server.
Also, I don't know what to do with python main.py. How to I run that?
i start the server with this (Windows) = python src/main.py --basnet_service_ip="http://X.X.X.X" --basnet_service_host="basnet-http.default.example.com" --photoshop_password 123456)
if you running in windows 10 just connect your localhost ip 1 (ex : 192.168.100.8:3000) to server.tsx and ake sure that ip and port is exactly same to the IP in server/main.py (scroll down to the end) for basnet-http i just create new localhost by using "netsh wlan start hostednetwork" and using this ip to basnet-http/main.py (scroll down to the end) run the basnet-http run the server run the app make sure when you run the server, BASNET_IP_SERVER is fill by basnet_http IP hope you get help sorry if make english bad
Could you please tell my how to run the server? I've successfully started basnet, but don't know how to start the server. Also, I don't know what to do with python main.py. How to I run that?
i start the server with this (Windows) = python src/main.py --basnet_service_ip="http://X.X.X.X" --basnet_service_host="basnet-http.default.example.com" --photoshop_password 123456)
Ah thank you, one step closer. I still got an atob error.
Can you please tell me what I need to put for http.default.example.com?
@buskerone I am using http://u2net-predictor.tenant-compass.global.coreweave.com
as Basenet still getting same error
i can access this server at X.X.X.X:3000
@buskerone I am using
http://u2net-predictor.tenant-compass.global.coreweave.com
as Basenet still getting same error
i can access this server at X.X.X.X:3000
[Solved] My antivirus was blocking Traffic from my phone😂.