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
[Apply lint] Add PR-only pre-commit workflow & lint all (#166)
* Refine pre-commit hook stages and ruff
Add default_stages and explicitly set stages for hooks so checks that don't modify files can run in both pre-commit and manual/CI, while modifiers run only locally. Reorganize and document ruff hooks into local autofix/write entries (runs with --fix/unsafe-fixes and format write) and CI check-only entries (output-format=github, --check/--diff). Also set stages for pyproject-fmt and validate-pyproject, add check-* hooks to pre-commit/manual, and clarify behavior with inline comments.
* [lint apply] Add PR-only pre-commit workflow
Add .github/workflows/format.yml: a GitHub Actions workflow that runs pre-commit only for changed files in PRs. It triggers on pull_request (opened, synchronize, reopened), uses a detect_changes job to checkout full history and compute the list of files changed against the base branch, and exposes that list as an output. A precommit job (guarded by a condition that changed files exist) checks out the PR branch, sets up Python 3.12, installs pre-commit, and runs pre-commit only on the changed files.
* Run pre-commit on all files
Manual fixes:
- Reordered some __init__ calls and added some __all__
- Added tensorrt import best-effort in one file
- __init__.py ignores E402 due to requiring registry update
* Update format.yml
* Use multiline GITHUB_OUTPUT for changed files
Replace the single-line echo that wrote CHANGED_FILES to $GITHUB_OUTPUT with a here-document (key<<EOF ... EOF) to correctly export multi-line file lists. This preserves newlines and spaces in the changed-files output so downstream workflow steps receive the full list.
* Update format.yml
* Fix circular import
* Fix all E501
* Export Engine for public acccess
DeepLabCut-live can be installed from PyPI with PyTorch or Tensorflow directly:
68
+
DeepLabCut-live can be installed from PyPI with PyTorch or Tensorflow directly:
69
69
```bash
70
70
# With PyTorch (recommended)
71
71
pip install deeplabcut-live[pytorch]
72
-
72
+
73
73
# Or with TensorFlow
74
74
pip install deeplabcut-live[tf]
75
-
75
+
76
76
# Or using uv
77
77
uv pip install deeplabcut-live[pytorch] # or [tf]
78
78
```
79
79
80
-
Note: On **Windows**, the `deeplabcut-live[pytorch]` extra will not install the required CUDA-enabled wheels for PyTorch by default. For GPU support, install CUDA-enabled PyTorch first, then install `deeplabcut-live[pytorch]`.
80
+
Note: On **Windows**, the `deeplabcut-live[pytorch]` extra will not install the required CUDA-enabled wheels for PyTorch by default. For GPU support, install CUDA-enabled PyTorch first, then install `deeplabcut-live[pytorch]`.
81
81
82
82
Please see our instruction manual for more elaborate information on how to install on a [Windows or Linux machine](
83
83
docs/install_desktop.md) or on a [NVIDIA Jetson Development Board](
84
-
docs/install_jetson.md).
84
+
docs/install_jetson.md).
85
85
86
86
This code works with PyTorch, TensorFlow 1 or TensorFlow
87
-
2 models, but whatever engine you exported your model with, you must import with the
88
-
same version (i.e., export a PyTorch model, then install PyTorch, export with TF1.13,
87
+
2 models, but whatever engine you exported your model with, you must import with the
88
+
same version (i.e., export a PyTorch model, then install PyTorch, export with TF1.13,
89
89
then use TF1.13 with DlC-Live; export with TF2.3, then use TF2.3 with DLC-live).
This project is licensed under the GNU AGPLv3. Note that the software is provided "as
259
-
is", without warranty of any kind, express or implied. If you use the code or data, we
260
-
ask that you please cite us! This software is available for licensing via the EPFL
258
+
This project is licensed under the GNU AGPLv3. Note that the software is provided "as
259
+
is", without warranty of any kind, express or implied. If you use the code or data, we
260
+
ask that you please cite us! This software is available for licensing via the EPFL
261
261
Technology Transfer Office (https://tto.epfl.ch/, info.tto@epfl.ch).
262
262
263
263
## Community Support, Developers, & Help:
@@ -270,9 +270,9 @@ https://github.com/DeepLabCut/DeepLabCut/blob/master/CONTRIBUTING.md), which is
270
270
at the main repository of DeepLabCut.
271
271
- We are a community partner on the [](https://forum.image.sc/tags/deeplabcut). Please post help and
272
272
support questions on the forum with the tag DeepLabCut. Check out their mission
273
-
statement [Scientific Community Image Forum: A discussion forum for scientific image
273
+
statement [Scientific Community Image Forum: A discussion forum for scientific image
0 commit comments