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

Unable to complete Test #6

Closed
mjsevilla opened this issue May 7, 2020 · 12 comments
Closed

Unable to complete Test #6

mjsevilla opened this issue May 7, 2020 · 12 comments

Comments

@mjsevilla
Copy link

Input:
PS C:\Users\micha\OneDrive\Documents\basnet-http-master> docker run --rm -p 8080:80 gcr.io/cyrildiagne-ml/basnet-http

Output:
Saved file tree to doc-filelist.js
Copied JS to doc-script.js
Compiled CSS to doc-style.css

Input:
PS C:\Users\micha\OneDrive\Documents\basnet-http-master> curl -F "data=@test.jpg" http://localhost:8080 -o result.png

Output:

Invoke-WebRequest : A parameter cannot be found that matches parameter name 'F'.
At line:1 char:6

  • curl -F "data=@test.jpg" http://localhost:8080 -o result.png
  •  ~~
    
    • CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
@mjsevilla
Copy link
Author

Wait..I have an 8gb AMD Radeon RX590 GPU (ie. not CUDA). Am I SOOL?

@mjsevilla
Copy link
Author

I don't understand how this wrapper is supposed to give me an IP to use for ar-cutpaste.

@cyrildiagne
Copy link
Owner

You need an Nvidia card to be able to use the GPU acceleration.
You can use your IP address if you're running the image on your computer. But it will take a long time to process.

@mjsevilla
Copy link
Author

When you say my IP, you mean my PC's not my Photoshop server's right? Is there a CUDA equivalent for AMD? I have a powerful GPU so I don't see why mine wouldn't suffice.

@CapCap
Copy link

CapCap commented May 7, 2020

the reason yours wont suffice is because CUDA is a proprietary, close-source, Nvdia project. It has nothing too do with the power of your GPU. For more information: https://en.wikipedia.org/wiki/CUDA

There is a theoretical possibility for OpenCL working on your GPU, which seems to be well outside the scope of this project, so I would direct you to pytorch/pytorch#488 (as this implementation of BAS-Net is powered by PyTorch)

@mjsevilla
Copy link
Author

mjsevilla commented May 7, 2020

@CapCap, thanks for the reply. I'm a bit confused about how @cyrildiagne is able to demo the plugin on his Macbook Pro then since those run on AMD GPUs.

You also bring up another issue I was having trying to install pytorch as instructed in Option 1 of Build from source. PIP doesn't seem to support torch==0.4.1 and therefore, I can't install that.

@CapCap
Copy link

CapCap commented May 7, 2020

@mjsevilla He's only running the photoshop server on his macbook, he's running BasNet in the cloud. You will have a much easier time running this on ubuntu in the cloud: directly running ML on OSX is generally a huge pain.

@mjsevilla
Copy link
Author

@CapCap, ok I'm on the same page now. Is this why there's a Docker option? I apologize, I haven't programmed since college so I feel like I'm re-learning all of this.

@CapCap
Copy link

CapCap commented May 7, 2020

docker makes everything easier in general: no need to worry about mismatched binaries, libraries, drivers, etc

@mjsevilla
Copy link
Author

So in theory, I should be able to get this working on my machine if I use docker..

@CapCap
Copy link

CapCap commented May 7, 2020

... and you had a Nvidia GPU, yes

@mjsevilla
Copy link
Author

And here I thought I went the right route going full-AMD on my PC build, lol. Thanks for your help.

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

3 participants