-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Top-down supervised identity prediction (#476)
* Add track indices to instance cropper * Add class vector generator * Split class vectors correctly in instance cropper * Move head output layer construction to heads module - Heads now subclass a base Head class - Naming doesn't include _0 anymore since we don't have any multi-output models for now. - Better input validation in Model.from_config constructor - Add loss weight to all heads in config - Test coverage for heads and (minimally for) model * Add topdown config, head and model - Rename multiclass to multiclass_bottomup * Add trainer * Data pipeline * Apply black to 'sleap' and 'tests' (#465) Co-authored-by: Arie Matsliah <[email protected]> * Fix model creation and add pooling param to head * Symmetry-aware flip augmentation (#455) * Implement symmetry-aware instance reflection * Fix symmetries sometimes not being returned uniquely * Add fancier indexing to instances * Add random flipping transformer * Fix failing linux test - Make sure indices are all cast to int32 * Add vertical flip * Add flip augmentation to config, GUI and pipeline builders * Update profiles with default fields Co-authored-by: ariematsliah-princeton <[email protected]> * Multi-size videos in data pipelines (#440) Add support for variable size videos within the same dataset by matching their size with padding or resizing Co-authored-by: Arie Matsliah <[email protected]> * Type check + Lint in CI (#470) * Try lint and typecheck in CI workflow * update * nit * continue on MyPy errors * test * correct * correct * correct Co-authored-by: Arie Matsliah <[email protected]> * Rename predictors for consistency with inference layers - TopdownPredictor -> TopDownPredictor - BottomupPredictor -> BottomUpPredictor * Create PULL_REQUEST_TEMPLATE.md * Update authors list (#471) Co-authored-by: Arie Matsliah <[email protected]> * Add CLA (#473) * Add CLA * update links Co-authored-by: Arie Matsliah <[email protected]> * Update PULL_REQUEST_TEMPLATE.md * Miscellaneous QOL (#467) Pre-1.1.0 update features (changelist in #467) * Bump pre-release version * Add back load_model that got lost in the merge - Add detection of bottomup and topdown multi-class model loading * Fix more missing things post-merge * Fix lint * Fix training from config * Add inference * Tweak describe tensor to accept nested tuples/dicts * Lint * Fix test * Lint * Fix load video dataset arg * Fix inference * Fix evals * Add BU MC to evals * Remove batch norm from TD MC head * Add option to disable batch norm in pretrained models * Add track matching when merging labels * Don't error when training finishes with no inference target Co-authored-by: ariematsliah-princeton <[email protected]> Co-authored-by: Arie Matsliah <[email protected]>
- Loading branch information
1 parent
cb3a439
commit a6aa12a
Showing
141 changed files
with
6,421 additions
and
2,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
### Description | ||
[describe your changes here] | ||
|
||
### Types of changes | ||
|
||
- [ ] Bugfix | ||
- [ ] New feature | ||
- [ ] Refactor / Code style update (no logical changes) | ||
- [ ] Build / CI changes | ||
- [ ] Documentation Update | ||
- [ ] Other (explain) | ||
|
||
### Does this address any currently open issues? | ||
[list open issues here] | ||
|
||
### Outside contributors checklist | ||
|
||
- [ ] Review the [guidelines for contributing](https://github.com/murthylab/sleap/wiki/Developer-Guide) to this repository | ||
- [ ] Read and sign the [CLA](https://github.com/murthylab/sleap/blob/develop/sleap-cla.pdf) and add yourself to the [authors list](https://github.com/murthylab/sleap/blob/develop/AUTHORS) | ||
- [ ] Make sure you are making a pull request against the **develop** branch (not *master*). Also you should start *your branch* off *develop* | ||
- [ ] Add tests that prove your fix is effective or that your feature works | ||
- [ ] Add necessary documentation (if appropriate) | ||
|
||
#### Thank you for contributing to SLEAP! | ||
:heart: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This is the official list of SLEAP authors not affiliated with Princeton University (for copyright purposes). | ||
|
||
# If you are contributing to SLEAP, please add your name and the name of your | ||
# organization (which holds the copyright) to this list in alphabetical order. | ||
|
||
# Names should be added to this file as | ||
# Name <email address> Organization name (or 'Individual Person' if not applicable) | ||
# Please keep the list sorted. | ||
|
||
|
||
John Smith <john at example.com> Example Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
# Get the sleap version | ||
with open(path.join(here, "sleap/version.py")) as f: | ||
version_file = f.read() | ||
sleap_version = re.search("\d.+(?=['\"])", version_file).group(0) | ||
sleap_version = re.search('__version__ = "([0-9\\.a]+)"', version_file).group(1) | ||
|
||
|
||
def get_requirements(require_name=None): | ||
|
@@ -31,11 +31,13 @@ def get_requirements(require_name=None): | |
version=sleap_version, | ||
setup_requires=["setuptools_scm"], | ||
install_requires=get_requirements(), | ||
extras_require={"dev": get_requirements("dev"),}, | ||
description="SLEAP (Social LEAP Estimates Animal Pose) is a deep learning framework for estimating animal pose.", | ||
extras_require={ | ||
"dev": get_requirements("dev"), | ||
}, | ||
description="SLEAP (Social LEAP Estimates Animal Poses) is a deep learning framework for animal pose tracking.", | ||
long_description=long_description, | ||
long_description_content_type="text/x-rst", | ||
author="Talmo Pereira, David Turner, Nat Tabris", | ||
author="Talmo Pereira, Arie Matsliah, David Turner, Nat Tabris", | ||
author_email="[email protected]", | ||
project_urls={ | ||
"Documentation": "https://sleap.ai/#sleap", | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.