CASIA-IVA-Lab / FastSAM

Fast Segment Anything
GNU Affero General Public License v3.0
7.34k stars 682 forks source link

not able to import fastsam , after installing using >> python3 -m pip install fastsam #168

Open satyarepala1618 opened 12 months ago

HaoqianSong commented 11 months ago

ann = prompt_process.text_prompt(text='a photo of a dog')

ann = prompt_process.point_prompt(points=[[620, 360]], pointlabel=[1])

prompt_process.plot(annotations=ann,output_path='./output/dog.jpg',)
from: can't read /var/mail/fastsam zsh: missing end of string zsh: command not found: IMAGEPATH zsh: command not found: DEVICE zsh: unknown file attribute: zsh: unknown file attribute: _ zsh: missing end of string

I have the same problem? Is it like this?

mdvdv commented 11 months ago

Hello, as far as I know, the authors of FastSAM do not provide official PyPI packages. You can follow the installation instructions, or use its implementation in ultralytics.

satyarepala1618 commented 11 months ago

the issue is setup file provided in packsge, not installng requirements, we need to install manually. python3 -m pip install 0r requirements.txt

lcdsn commented 11 months ago

Run

pip install git+https://github.com/CASIA-IVA-Lab/FastSAM

Then copy the fastsam folder inside your library packages. If you're using a virtual machine it looks like venv/lib/python3.11/site-packages