ecsplendid / rembg-greenscreen

Rembg Video Virtual Green Screen Edition
MIT License
254 stars 31 forks source link

Can't install on Windows 10 + Anaconda - Running = Errors ?? #21

Open AlonDan opened 2 years ago

AlonDan commented 2 years ago

I've created an environment called: "rembg-greenscreen" with python 3.9 and activated it I tried to install using: pip install rembg-greenscreen

But I got some errors I'm not sure how to fix as I'm not a programmer,

cmd_2022-09-08_23-21-30

Can someone please explain how to install it correct without errors?

Thanks ahead!

AlonDan commented 2 years ago

Problem solved by manually install numpy: pip install numpy==1.19.4

Then, install again should complete without any errors: pip install rembg-greenscreen

I hope this will help others in case you ran in to this issue. 👍

AlonDan commented 2 years ago

I keep on update in case anyone can help, or if I'll find a solution.

I've tried to run my first test, it seems like it's "almost" working... but I get errors and it's stuck. I can get back to Anaconda using Ctrl+C

cmd_2022-09-08_23-57-53

I'm not sure what to do now or how to fix it... any help will be appreciated. Thanks ahead!

hic9507 commented 2 years ago

Did you solve this problem? I have an same error. If you solve it, I need your help. Thanks

AlonDan commented 2 years ago

Did you solve this problem? I have an same error. If you solve it, I need your help. Thanks

Unfortunately I couldn't solve it, I even tried to reinstall from scratch but got the same errors.

hic9507 commented 2 years ago

I saw other issue on 'rembg'. [(https://github.com/danielgatis/rembg/issues?q=pickle)]

I tried download 'u2net_human_seg.pth', and move it right place.

But, this file( u2net_human_seg.pth) keeps downloading, and after only 3kb is downloaded, the same error is shown.

So I'm trying to find out if there is a part that makes the model download unconditionally, and I'm curious if it can be solved after seeing this. (rembg-screen/src/rembg/u2net/bg.py) (rembg-screen/src/rembg/u2net/multiprocessing.py)

I am a newb, so I think you are better than me for solve this problem.

Anyway, I will refer to the link, so please read the problem carefully. They had a similar problem. And if any of us find a solution first, please comment here.

image

hic9507 commented 2 years ago

Did you solve this problem? I have an same error. If you solve it, I need your help. Thanks

Unfortunately I couldn't solve it, I even tried to reinstall from scratch but got the same errors.

Did you solve this problem?

AlonDan commented 2 years ago

And if any of us find a solution first, please comment here.

I also had this problem, where it download to my C drive under the user and some directory path (I can't remember) and when trying to run it OVERWRITE the u2net_human_seg.pth (172MB size) with another one and stuck... probably the 3KB like you show.

I tried to copy it MANUALLY but it will overwrite the moment I try to run via anaconda again.

Can you please update you link? it leads to the main issues page I would like to follow your suggestion and read it maybe I'll give it a try. I'm a newbie in this and not a programmer so if it's complex I'll probably won't be able to do much.

Like you suggested @hic9507 if any of us find a solution, let's share it here ❤

suffa07 commented 1 year ago

I experience a similar problem when attempting to install "rembg-greenscreen", repeatedly received an error: "could not build numpy wheel...". I tried a number of things, but ultimately what seemed to work was running the following commands (in this order) from the cmd line (OSX 13.2.1):

  1. sudo pip install --upgrade --no-deps --force-reinstall numpy
  2. sudo pip install --upgrade --no-deps --force-reinstall rembg-greenscreen