03-08-2021, 08:06 AM
That would be good enough.
If you don't want to mess around in your system and like to keep things seperate install anaconda from here:
https://repo.anaconda.com/archive/Anacon...-x86_64.sh
To install: make the file executable, open a terminal in that download dir,
type
It will install anaconda (= a separate python 3.8) in your home dir.
Towards the end of the installation it'll ask you
answer yes.
Open a new terminal and you'll see there is the word (base) in front of your usual promt.
This tells you you're in the environment. That's what you need.
Next you can install rembg:
if you don't have pip installed it will tell you.
~~~~~
Now that you have rembg installed you can use it.
Open a terminal in the dir where you have the photo
Write this in there:
First run compiles stuff which is expected.
It takes some minutes until it's done.
Now if you do not want to have the anaconda stuff started automatically you can do
But then if you want to use it (with rembg) you have to start it each time like this:
This is how I have setup my installation and it works fine.
Results depend on the input photos of course.
If you don't want to mess around in your system and like to keep things seperate install anaconda from here:
https://repo.anaconda.com/archive/Anacon...-x86_64.sh
To install: make the file executable, open a terminal in that download dir,
type
Code:
./Anaconda3-2020.11-Linux-x86_64.sh
It will install anaconda (= a separate python 3.8) in your home dir.
Towards the end of the installation it'll ask you
Quote:Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
answer yes.
Open a new terminal and you'll see there is the word (base) in front of your usual promt.
This tells you you're in the environment. That's what you need.
Next you can install rembg:
Code:
pip install rembg
if you don't have pip installed it will tell you.
~~~~~
Now that you have rembg installed you can use it.
Open a terminal in the dir where you have the photo
Write this in there:
Code:
rembg -o Outputfile-out.png Inputfile.jpg
First run compiles stuff which is expected.
It takes some minutes until it's done.
Now if you do not want to have the anaconda stuff started automatically you can do
Code:
conda config --set auto_activate_base false
But then if you want to use it (with rembg) you have to start it each time like this:
Code:
conda activate base
This is how I have setup my installation and it works fine.
Results depend on the input photos of course.