plemeri / transparent-background

This is a background removing tool powered by InSPyReNet (ACCV 2022)
MIT License
795 stars 87 forks source link

latest.pth is missing how to add it #35

Closed imrefazekasgo closed 1 year ago

imrefazekasgo commented 1 year ago

CLI tool wants to have a

.transparent-background/latest.pth

but not sure what to add to this file to be able to run the CLI tool ...

plemeri commented 1 year ago

It will automatically download the checkpoint as below.

➜ transparent-background -s test.png -m base
Downloading...
From (uriginal): https://drive.google.com/uc?id=13oBl5MTVcWER3YU4fSxW3ATlVfueFQPY
From (redirected): https://drive.google.com/uc?id=13oBl5MTVcWER3YU4fSxW3ATlVfueFQPY&confirm=t&uuid=478104e1-cc61-415e-add2-7aa3d2b8d532
To: /home/taehoon1018/.transparent-background/ckpt_base.pth
100%|████████████████████████████████████████████████████████████████████████████████| 368M/368M [00:06<00:00, 58.0MB/s]
Settings -> Mode=base, Device=cuda:0, Torchscript=disabled
test.png:      100%|██████████████████████████████████████████████████| 1/1 [00:02<00:00,  2.89s/it]
plemeri commented 1 year ago

Closing the issue due to inactivity.