Skip to main content

ZZDeepRollover

This code enables the detection of rollovers performed by zebrafish larvae tracked by the open-source software ZebraZoom. This code is still in "beta mode". For more information visit zebrazoom.org or email us at info@zebrazoom.org

Road Map:

Preparing the rollovers detection model
Testing the rollovers detection model
Training the rollovers detection model
Using the rollovers detection model

Preparing the rollovers detection model:

The detection of rollovers is based on deep learning. You must first install pytorch on your machine. It may be better to first create an anaconda environment for this purpose.

You then need to place the output result folders of
ZebraZoom inside the folder "ZZoutput" of this repository.

In order to train the rollovers detection model, you must also manually classify the frames of some of the tracked videos in order to be able to create a training set. Look inside the folder "manualClassificationExamples" for examples of how to create such manual classifications. You then need to place those manual classifications inside the corresponding output result folders of ZebraZoom.

Testing the rollovers detection model:

In order to test the accuracy of the rollovers detection model, you can use the script leaveOneOutVideoTest.py, you will need to adjust some variables at the beginning of that script. The variable "videos" is an array that must contain the name of videos for which a manual classification of frames exist and has been placed inside the corresponding output result folder (inside the folder ZZoutput of this repository).

The script leaveOneOutVideoTest.py will loop through all the videos learning the model on all but one video and testing on the video left out.

Training the rollovers detection model:

Once the model has been tested using the steps described in the previous section, you can now learn the final model on all the videos for which a manual classification of frames exist using the script trainModel.py (you will need to adjust a few variables in that script).

Using the rollovers detection model:

As mentionned above, you can then use the script useModel.py to apply the rollovers detection model on a video.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zzdeeprollover-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zzdeeprollover-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file zzdeeprollover-0.0.1.tar.gz.

File metadata

  • Download URL: zzdeeprollover-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for zzdeeprollover-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7cb85151dbc9b7cb40421ece70cdc25d406006870c6787a60c6add7e05e3cd15
MD5 958a11cb008c6783d7ee13912025315e
BLAKE2b-256 790b3df64650ac84c8e713c35df29391792d7c24241c02c633b8231b94aedcfc

See more details on using hashes here.

File details

Details for the file zzdeeprollover-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: zzdeeprollover-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.6.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for zzdeeprollover-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e11c00c3da5e803bfec5b916267b85ba059c803cc1830572e03628e899500e85
MD5 f635ee200d5c8554df5438aa2649494b
BLAKE2b-256 4041cf7341ff5d14a1c897e5a859e73ad19eb5b2e58151cbab04b008fec943f3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.9

2 files

0.0.8

2 files

0.0.7

1 file

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page