Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hailo AI Kit + Rpi 5 + Text Prompt FastSAM Segment anything model (Meta) #49

Open
agronomofiorentini opened this issue Oct 2, 2024 · 2 comments

Comments

@agronomofiorentini
Copy link

Dear contributors,
I have bought and installed the Hailo AI kit on rpi 5 by following this article https://www.raspberrypi.com/documentation/accessories/ai-kit.html

but when i try to use it with the following code.

from fastsam import FastSAM, FastSAMPrompt

model = FastSAM('./weights/FastSAM.pt')
IMAGE_PATH = './images/dogs.jpg'
everything_results = model(IMAGE_PATH, retina_masks=True, imgsz=1024, conf=0.4, iou=0.9,)
prompt_process = FastSAMPrompt(IMAGE_PATH, everything_results)

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

prompt_process.plot(annotations=ann, output_path='./output/dog.jpg',)

it's still using the cpu without any AI acceleration.

Could you help me to solve this?

@giladnah
Copy link
Contributor

giladnah commented Oct 8, 2024

Hi @agronomofiorentini, I order to execute the model on Hailo it has to be first compiled and than executed using Hailo tools. If you need more information and got more questions please join the community in https://community.hailo.ai/

@agronomofiorentini agronomofiorentini changed the title Hailo AI Kit + Rpi 5 + FastSAM Segment anything model (Meta) Hailo AI Kit + Rpi 5 + Text Prompt FastSAM Segment anything model (Meta) Oct 8, 2024
@agronomofiorentini
Copy link
Author

I signed in the community hailo but i have to wait for approval.
Anyone tried to use the FastSam with text prompt in hailo? How to compile it and use it?

Anyone has an example that i can follow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants