FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

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

Open satyarepala1618 opened this issue 2 years ago • 4 comments

satyarepala1618 avatar Sep 16 '23 02:09 satyarepala1618

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: IMAGE_PATH 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?

HaoqianSong avatar Sep 21 '23 02:09 HaoqianSong

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.

mdvdv avatar Sep 21 '23 07:09 mdvdv

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

satyarepala1618 avatar Sep 21 '23 08:09 satyarepala1618

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

lcdsn avatar Oct 10 '23 17:10 lcdsn