Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
OekoFor
BirdNET
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
BirdNET
/
Dockerfile-GPU
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
47 lines (36 loc) · 1.43 KB
master
Breadcrumbs
BirdNET
/
Dockerfile-GPU
Copy path
Top
File metadata and controls
Code
Blame
47 lines (36 loc) · 1.43 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Install NVIDIA GPU image
FROM nvidia/cuda:9.2-cudnn7-devel
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev python3-pip python3-nose python3-setuptools libblas-dev liblapack-dev cmake ffmpeg gfortran git && rm -rf /var/lib/apt/lists/*
# Install required Python packages
RUN pip3 install --upgrade pip
RUN pip3 install numpy scipy cython librosa future
# Obtain libgpuarray & pygpu.
RUN git clone https://github.com/Theano/libgpuarray.git
# Build and Install libgpuarray & pygpu.
RUN cd libgpuarray && \
mkdir Build && \
cd Build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
make && \
make install && \
cd .. && \
python3 setup.py build && \
python3 setup.py install && \
ldconfig
# Install Theano
RUN git clone git://github.com/Theano/Theano.git && \
cd Theano && \
pip3 install -e .
ENV THEANO_FLAGS 'device=cuda,floatX=float32'
# FP32 is used by default. You can always reset this flag.
# Set up .theanorc for CUDA
RUN echo "[global]\ndevice=cuda\nfloatX=float32\noptimizer_including=cudnn\n[lib]\ncnmem=0.1\n[nvcc]\nfastmath=True" > /root/.theanorc
# Install Lasagne
RUN pip3 install https://github.com/Lasagne/Lasagne/archive/master.zip
# Import all scripts
COPY . ./
# Fetch model
ADD https://tuc.cloud/index.php/s/m9smX4FkqmJaxLW/download ./model/BirdNET_Soundscape_Model.pkl
# Add entry point to run the script
ENTRYPOINT [ "python3", "./analyze.py" ]
You can’t perform that action at this time.