tphakala / birdnet-go

Realtime BirdNET soundscape analyzer
Other
137 stars 14 forks source link

Running birdnet-go in docker on Raspberry Pi #127

Closed knolljo closed 2 months ago

knolljo commented 2 months ago

I'm currently trying to run birdnet-go on a raspberry pi with docker.

The Pi is running a default, clean Raspbian and docker was installed with this command curl -fsSL https://get.docker.com | sh.

Running this command:

docker run -ti \
-p 8080:8080 \
--env ALSA_CARD=0 \
--env TZ="Europe/Stockholm" \
--device /dev/snd \
ghcr.io/tphakala/birdnet-go:latest

Gives following error message, which suggests that there are no linux/arm/v7 images for the raspberry pi architecture:

Unable to find image 'ghcr.io/tphakala/birdnet-go:latest' locally
latest: Pulling from tphakala/birdnet-go
docker: no matching manifest for linux/arm/v7 in the manifest list entries.
See 'docker run --help'.

Adding linux/arm/v7 to the docker workflow could maybe build the images for raspberry pi, but I haven't tested yet.

Is there an easier way to run birdnet-go on the pi? I haven't found documentation explicitly for the pi so I'm quite unsure.

Thanks in advance!

isZumpo commented 2 months ago

Yes, that would make sense to add to the docker building workflow. I suppose that you are running some sort of arm32 based raspberry distro. May I ask exactly what raspberry device model you are using?

knolljo commented 2 months ago

Of course:

tphakala commented 2 months ago

Is there a specific reason you are using 32-bit version of Raspberry Pi OS instead of 64-bit? I would highly recommend installing 64-bit Pi OS, then existing Docker images would run just fine.

knolljo commented 2 months ago

Whops, didn't realize I flashed the 32-bit version, will try again with 64, thanks!

knolljo commented 2 months ago

Just wanted to add, that I'm doing this for a uni project, where the team assignment is to do something with KI for birdsong recognition, we are also backed by dawn chorus. Our Prof is pretty open to suggestions for things to work on, as we are currently in the state of evaluating projects that we can build upon. We are 6 students in 4-6 semester and really like birdnet-go for it's simplicity.

I've already skimmed through some feature requests and had some own ideas. I'm interested what you think about those and if you'd be ok with us contributing some:

Of course our Prof has to approve this, we are having a meeting on thursday where I wanted to pitch this idea and having a positive response from you could help :)

Hope this doesn't sound too weird, thank you.

tphakala commented 2 months ago

Yes I am open for contributions.

Please file a issue for each with as feature enhancement label, this is best way to get feedback and maybe get more people to collaborate.