Skip to content

Commit 1027750

Browse files
roomrystalmogetzzejiayinghsuJeremy Delahanty
authored
SLEAP v1.2.7 (#943)
Co-authored-by: Talmo Pereira <[email protected]> Co-authored-by: Arlo Sheridan <[email protected]> Co-authored-by: getzze <[email protected]> Co-authored-by: Jiaying Hsu <[email protected]> Co-authored-by: Jeremy Delahanty <[email protected]>
1 parent ae6c85b commit 1027750

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2563
-458
lines changed

.conda/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pip install scikit-image
3737
pip install scikit-learn==1.0.*
3838
pip install scikit-video
3939
pip install imgstore==0.2.9
40-
pip install qimage2ndarray==1.8.3
40+
pip install qimage2ndarray==1.9.0
4141
pip install jsmin
4242
pip install seaborn
4343
pip install pykalman==0.9.5

.conda/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pip install scikit-image
3434
pip install scikit-learn==1.0.*
3535
pip install scikit-video
3636
pip install imgstore==0.2.9
37-
pip install qimage2ndarray==1.8.3
37+
pip install qimage2ndarray==1.9.0
3838
pip install jsmin
3939
pip install seaborn
4040
pip install pykalman==0.9.5

.conda/meta.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ requirements:
3535
- shapely=1.7.1
3636
- conda-forge::pandas
3737
- ffmpeg
38-
- conda-forge::pip<=22.0.3
38+
- qtpy>=2.0.1
39+
- conda-forge::pip!=22.0.4
3940

4041
run:
4142
- python=3.7
@@ -49,14 +50,15 @@ requirements:
4950
- shapely=1.7.1
5051
- conda-forge::pandas
5152
- ffmpeg
53+
- qtpy>=2.0.1
5254
- cudatoolkit=11.3.1
5355
- cudnn=8.2.1
5456
- nvidia::cuda-nvcc=11.3
55-
- conda-forge::pip<=22.0.3
57+
- conda-forge::pip!=22.0.4
5658

5759
run_constrained:
5860
- pyqt==9999999999
5961

6062
test:
6163
imports:
62-
- sleap
64+
- sleap

.conda_m1/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This folder defines the conda package build for M1 Macs. Until there are aarm64 runners, we have to run this manually on Apple M1 silicon.
2+
3+
To build, first go to the base repo directory and install the M1-compatible environment:
4+
```
5+
conda env create -f environment_m1.yml -n sleap_build && conda activate sleap_build
6+
```
7+
8+
Next, install build dependencies:
9+
```
10+
conda install conda-build=3.21.7 && conda install anaconda-client && conda install conda-verify
11+
```
12+
13+
And finally, run the build command pointing to this directory:
14+
```
15+
conda build .conda_m1 --output-folder build -c https://conda.anaconda.org/sleap/ -c nvidia -c conda-forge -c apple
16+
```

.conda_m1/build.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env bash
2+
3+
# Install anything that didn't get conda installed via pip.
4+
# We need to turn pip index back on because Anaconda turns
5+
# it off for some reason. Just pip install -r requirements.txt
6+
# doesn't seem to work, tensorflow-gpu, jsonpickle, networkx,
7+
# all get installed twice if we do this. pip doesn't see the
8+
# conda install of the packages.
9+
10+
export PIP_NO_INDEX=False
11+
export PIP_NO_DEPENDENCIES=False
12+
export PIP_IGNORE_INSTALLED=False
13+
14+
# pip install numpy==1.22.3
15+
pip install attrs==21.4.0
16+
pip install cattrs==1.1.1
17+
pip install jsonpickle==1.2
18+
pip install networkx
19+
# pip install tensorflow>=2.6.3,<2.9.0; platform_machine != 'arm64'
20+
pip install tensorflow-macos==2.9.2
21+
pip install tensorflow-metal==0.5.0
22+
# pip install h5py==3.6.0
23+
pip install python-rapidjson
24+
# pip install opencv-python==4.6.0
25+
pip install pandas
26+
pip install psutil
27+
# pip install PySide2==5.15.5
28+
pip install pyzmq
29+
pip install pyyaml
30+
# pip install pillow==8.4.0
31+
pip install imageio<=2.15.0
32+
pip install imgaug==0.4.0
33+
# pip install scipy==1.7.3
34+
pip install scikit-image
35+
pip install scikit-learn==1.0.*
36+
pip install scikit-video
37+
pip install imgstore==0.2.9
38+
pip install qimage2ndarray==1.9.0
39+
pip install jsmin
40+
pip install seaborn
41+
pip install pykalman==0.9.5
42+
pip install segmentation-models==1.0.1
43+
pip install rich==10.16.1
44+
pip install certifi==2021.10.8
45+
pip install pynwb
46+
pip install ndx-pose
47+
48+
49+
pip install setuptools-scm
50+
51+
python setup.py install --single-version-externally-managed --record=record.txt

.conda_m1/conda_build_config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# We specify the numpy version here for build compatibility.
2+
#
3+
# Ref: https://docs.conda.io/projects/conda-build/en/latest/resources/variants.html#conda-build-variant-config-files
4+
5+
python:
6+
- 3.9
7+
8+
numpy:
9+
- 1.22.3

.conda_m1/meta.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Ref: https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html
2+
3+
# Jinja template: Process setup.py to obtain version and metadata
4+
{% set data = load_setup_py_data() %}
5+
6+
7+
package:
8+
# Repeating name because of the following issue:
9+
# https://github.com/conda/conda-build/issues/2475
10+
name: sleap
11+
version: {{ data.get('version') }}
12+
13+
about:
14+
home: {{ data.get('url') }}
15+
license: {{ data.get('license') }}
16+
summary: {{ data.get('description') }}
17+
18+
build:
19+
number: 1
20+
21+
source:
22+
path: ../
23+
24+
requirements:
25+
host:
26+
- python=3.9
27+
- shapely=1.7.1
28+
- conda-forge::h5py=3.6.0
29+
- conda-forge::numpy=1.22.3
30+
- scipy=1.7.3
31+
- pillow=8.4.0
32+
- apple::tensorflow-deps=2.9.0
33+
- conda-forge::pyside2=5.15.5
34+
- conda-forge::opencv=4.6.0
35+
- qtpy=2.0.1
36+
- conda-forge::pip!=22.0.4
37+
38+
run:
39+
- python=3.9
40+
- shapely=1.7.1
41+
- conda-forge::h5py=3.6.0
42+
- conda-forge::numpy=1.22.3
43+
- scipy=1.7.3
44+
- pillow=8.4.0
45+
- apple::tensorflow-deps=2.9.0
46+
- conda-forge::pyside2=5.15.5
47+
- conda-forge::opencv=4.6.0
48+
- qtpy=2.0.1
49+
- conda-forge::pip!=22.0.4
50+
51+
run_constrained:
52+
- pyqt==9999999999
53+
54+
test:
55+
imports:
56+
- sleap

.coveralls.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Please include information about how you installed.
2828
- OS:
2929
<!-- [e.g. ubuntu 20.04, macOS 11.0] -->
3030
- Version(s):
31-
<!-- e.g. [SLEAP v1.2.5, python 3.8] --->
31+
<!-- e.g. [SLEAP v1.2.7, python 3.8] --->
3232
- SLEAP installation method (listed [here](https://sleap.ai/installation.html#)):
3333
- [ ] [Conda from package](https://sleap.ai/installation.html#conda-package)
3434
- [ ] [Conda from source](https://sleap.ai/installation.html#conda-from-source)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
### Outside contributors checklist
1717

18-
- [ ] Review the [guidelines for contributing](https://github.com/talmolab/sleap/wiki/Developer-Guide) to this repository
18+
- [ ] Review the [guidelines for contributing](https://github.com/talmolab/sleap/blob/develop/docs/CONTRIBUTING.md) to this repository
1919
- [ ] Read and sign the [CLA](https://github.com/talmolab/sleap/blob/develop/sleap-cla.pdf) and add yourself to the [authors list](https://github.com/talmolab/sleap/blob/develop/AUTHORS)
2020
- [ ] Make sure you are making a pull request against the **develop** branch (not *main*). Also you should start *your branch* off *develop*
2121
- [ ] Add tests that prove your fix is effective or that your feature works

0 commit comments

Comments
 (0)