Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove background
#13
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

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.
Reply


Messages In This Thread
Remove background - by meetdilip - 03-05-2021, 03:15 PM
RE: Remove background - by rich2005 - 03-05-2021, 05:48 PM
RE: Remove background - by meetdilip - 03-06-2021, 04:02 PM
RE: Remove background - by eepjr24 - 03-06-2021, 04:14 PM
RE: Remove background - by rich2005 - 03-06-2021, 04:25 PM
RE: Remove background - by meetdilip - 03-06-2021, 05:41 PM
RE: Remove background - by nelo - 03-07-2021, 08:11 AM
RE: Remove background - by meetdilip - 03-07-2021, 11:37 AM
RE: Remove background - by nelo - 03-07-2021, 03:35 PM
RE: Remove background - by meetdilip - 03-07-2021, 04:27 PM
RE: Remove background - by nelo - 03-07-2021, 04:35 PM
RE: Remove background - by meetdilip - 03-08-2021, 07:13 AM
RE: Remove background - by nelo - 03-08-2021, 08:06 AM
RE: Remove background - by Zero01 - 03-12-2021, 12:32 PM

Forum Jump: