Skip to content

Commit

Permalink
Merge pull request #14 from WildMeOrg/deer-background-v0
Browse files Browse the repository at this point in the history
Adding Background model for Deer
  • Loading branch information
holmbergius authored Jul 19, 2024
2 parents ec15319 + e88df37 commit 50a36b5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}


- name: Free Disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /opt/hostedtoolcache
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: Build project
run: |
bash run_developer_setup.sh
Expand Down
2 changes: 1 addition & 1 deletion requirements/build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake
ninja
scikit-build
setuptools
setuptools>=61
setuptools_scm[toml]
wheel
7 changes: 7 additions & 0 deletions wbia_cnn/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,13 @@ def generate_species_background(ibs, chip_list, species=None, nInput=None):
model = models.BackgroundModel(batch_size=batch_size, data_shape=data_shape)
weights_path = grabmodels.ensure_model('background_scout_v0', redownload=False)
canvas_key = 1
elif species in ['deer']:
LEGACY = False
species = 'deer'
confidence_thresh = 0.2
model = models.BackgroundModel(batch_size=batch_size, data_shape=data_shape)
weights_path = grabmodels.ensure_model('background_deer_v0', redownload=False)
canvas_key = 1
elif species in [
'whale_fin',
'whale_fin+fin_dorsal',
Expand Down
2 changes: 2 additions & 0 deletions wbia_cnn/_plugin_grabmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
'vggnet_conv': 'pretrained.caffe.vgg.slice_0_32_None.pkl',
'vggnet_full': 'pretrained.caffe.vgg.pkl',
'background_sea_turtle_new_v0': 'background.sea_turtle_new.v0.pkl',
'background_deer_v0': 'background.deer.v0.pkl'

}


Expand Down

0 comments on commit 50a36b5

Please sign in to comment.