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.

Release files for zzdeeprollover 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zzdeeprollover 0.0.9
File Size Uploaded
zzdeeprollover-0.0.9.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zzdeeprollover 0.0.9
File Interpreter ABI Platform
zzdeeprollover-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / zzdeeprollover-0.0.9.tar.gz

Download URL zzdeeprollover-0.0.9.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7cf2bab73c9f93483c0cd7eb8fe9da3954e656982b31c82ce515564450483510
BLAKE2b-256 checksum
How to use checksums
d55719fc73ba0c40993e47d7cfa724ae6f4a1f375895b8d68559010a8ed6a5a9
Upload date
Uploaded using Trusted Publishing?
What is 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.65.0 CPython/3.8.5

Release files / zzdeeprollover-0.0.9-py3-none-any.whl

Download URL zzdeeprollover-0.0.9-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3889c22e972b1fe354424dc6d9e5cd0505389cfe7964c50533c94cee1dce9280
BLAKE2b-256 checksum
How to use checksums
e74d2e5fc11eaeae257685ad17b96884bf83a51c14b64fce4458fc668862bd6a
Upload date
Uploaded using Trusted Publishing?
What is 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.65.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

1 release file

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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