You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR makes several documentation fixes and improvements:
- Updates the docs workflow to use `uv sync` instead of `pip`.
- Fixes broken links on the inference page.
- Adjusts the menu order for better navigation.
- Add more instructions on how to use `uvx`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Thank you for your interest in contributing to sleap-nn! This guide will help yo
9
9
10
10
2.**Install sleap-nn dependencies based on your platform**\
11
11
12
-
- Sync all dependencies based on your correct wheel using `uv sync`:
12
+
- Sync all dependencies based on your correct wheel using `uv sync`. `uv sync` creates a `.venv` (virtual environment) inside your current working directory. This environment is only active within that directory and can't be directly accessed from outside. To use all installed packages, you must run commands with `uv run` (e.g., `uv run sleap-nn train ...` or `uv run pytest ...`).
13
13
-**Windows/Linux with NVIDIA GPU (CUDA 11.8):**
14
14
15
15
```bash
@@ -28,9 +28,6 @@ Thank you for your interest in contributing to sleap-nn! This guide will help yo
28
28
uv sync --extra dev --extra torch-cpu
29
29
```
30
30
31
-
You can find the correct wheel for your system at:\
> Use a sample config from [`docs/sample_configs`](https://github.com/talmolab/sleap-nn/tree/main/docs/sample_configs).
38
+
39
+
#### 3. Train a model
40
+
41
+
> Download sample training data from [here](https://storage.googleapis.com/sleap-data/datasets/BermanFlies/random_split1/train.pkg.slp) and validation data from [here](https://storage.googleapis.com/sleap-data/datasets/BermanFlies/random_split1/val.pkg.slp) for quick experimentation.
2.**Install [`uv`](https://github.com/astral-sh/uv) and development dependencies**
50
-
`uv` is a fast and modern package manager for `pyproject.toml`-based projects. Refer [installation docs](https://docs.astral.sh/uv/getting-started/installation/) to install uv.
3.**Install sleap-nn dependencies based on your platform**\
53
76
54
-
- Sync all dependencies based on your correct wheel using `uv sync`:
55
-
-**Windows/Linux with NVIDIA GPU (CUDA 11.8):**
56
-
57
-
```bash
58
-
uv sync --extra dev --extra torch-cuda118
59
-
```
77
+
- Sync all dependencies based on your correct wheel using `uv sync`. `uv sync` creates a `.venv` (virtual environment) inside your current working directory. This environment is only active within that directory and can't be directly accessed from outside. To use all installed packages, you must run commands with `uv run` (e.g., `uv run sleap-nn train ...` or `uv run pytest ...`).
78
+
-**Windows/Linux with NVIDIA GPU (CUDA 11.8):**
60
79
61
-
- **Windows/Linux with NVIDIA GPU (CUDA 12.8):**
80
+
```bash
81
+
uv sync --extra dev --extra torch-cuda118
82
+
```
62
83
63
-
```bash
64
-
uv sync --extra dev --extra torch-cuda128
65
-
```
66
-
67
-
- **macOS with Apple Silicon (M1, M2, M3, M4) or CPU-only (no GPU or unsupported GPU):**
68
-
Note: Even if torch-cpu is used on macOS, the MPS backend will be available.
69
-
```bash
70
-
uv sync --extra dev --extra torch-cpu
71
-
```
84
+
-**Windows/Linux with NVIDIA GPU (CUDA 12.8):**
72
85
73
-
You can find the correct wheel for your system at:\
-**macOS with Apple Silicon (M1, M2, M3, M4) or CPU-only (no GPU or unsupported GPU):**
91
+
Note: Even if torch-cpu is used on macOS, the MPS backend will be available.
92
+
```bash
93
+
uv sync --extra dev --extra torch-cpu
94
+
```
75
95
76
96
4.**Run tests**
77
97
```bash
@@ -83,30 +103,3 @@ cd sleap-nn
83
103
uv run black --check sleap_nn tests
84
104
uv run ruff check sleap_nn/
85
105
```
86
-
87
-
## Quick Start
88
-
89
-
Let's start SLEAPiNNg !!! 🐭🐭
90
-
91
-
> For detailed information on setting up config, training/ inference workflows, please refer to our [docs](https://nn.sleap.ai).
92
-
93
-
#### 1. Set Up Your Configuration
94
-
95
-
Create a `config.yaml` file for your experiment.
96
-
97
-
> Use a sample config from [`docs/sample_configs`](https://github.com/talmolab/sleap-nn/tree/main/docs/sample_configs).
98
-
99
-
#### 2. Train a model
100
-
101
-
> Download sample training data from [here](https://storage.googleapis.com/sleap-data/datasets/BermanFlies/random_split1/train.pkg.slp) and validation data from [here](https://storage.googleapis.com/sleap-data/datasets/BermanFlies/random_split1/val.pkg.slp) for quick experimentation.
0 commit comments