Skip to content

Commit 51150d0

Browse files
committed
fix docs
1 parent 2450312 commit 51150d0

File tree

2 files changed

+50
-34
lines changed

2 files changed

+50
-34
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,19 @@ learning research into action detection:
2222
## Installation
2323
For full installation instructions, see [this readme file](docs/installation.md).
2424

25-
In brief:
26-
* [Install PyTorch](https://pytorch.org/)
27-
* `pip install deepethogram`
25+
### Quick Install (Recommended)
26+
We recommend using [UV](https://docs.astral.sh/uv/) for fast, reliable Python package management:
27+
28+
1. Install UV:
29+
```bash
30+
curl -LsSf https://astral.sh/uv/install.sh | sh
31+
```
32+
For troubleshooting or Windows, see [other installation methods](https://docs.astral.sh/uv/getting-started/installation/)
33+
34+
2. Install DeepEthogram:
35+
```bash
36+
uv pip install deepethogram
37+
```
2838

2939
## Data
3040
**NEW!** All datasets collected and annotated by the DeepEthogram authors are now available from this DropBox link:
@@ -65,7 +75,7 @@ The major dependencies for DeepEthogram are as follows:
6575
* pytorch, torchvision: all the neural networks, training, and inference pipelines were written in PyTorch
6676
* pytorch-lightning: for nice model training base classes
6777
* kornia: for GPU-based image augmentations
68-
* pyside2: for the GUI
78+
* PySide6: for the GUI (upgraded from PySide2 in v0.3.0)
6979
* opencv: for video and image reading and writing
7080
* opencv_transforms: for fast image augmentation
7181
* scikit-learn, scipy: for binary classification metrics

docs/installation.md

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
11
# Installation
22

3-
## Brief version
3+
## Quick Install with UV (Recommended for v0.3.0+)
4+
5+
We now recommend using [UV](https://docs.astral.sh/uv/) for fast, reliable installation:
6+
7+
1. **Install UV**:
8+
```bash
9+
curl -LsSf https://astral.sh/uv/install.sh | sh
10+
# or see the uv website for Windows instructions
11+
```
12+
13+
2. **Create environment and install**:
14+
```bash
15+
uv venv --python 3.8
16+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
17+
uv pip install deepethogram
18+
```
19+
20+
**Note**: DeepEthogram v0.3.0+ requires Python 3.8 and uses PySide6 (upgraded from PySide2).
21+
22+
## Traditional Installation, NOT RECOMMENDED!
23+
24+
### Brief version
425
* Install Anaconda
5-
* Create a new anaconda environment: `conda create --name deg python=3.7`
26+
* Create a new anaconda environment: `conda create --name deg python=3.8`
627
* Activate your environment: `conda activate deg`
7-
* Install PySide2: `conda install -c conda-forge pyside2==5.13.2`
828
* Install PyTorch: [Use this link for official instructions.](https://pytorch.org/)
9-
* `pip install deepethogram`.
29+
* `pip install deepethogram`
1030

11-
## Installing from source
31+
### Installing from source
1232
* `git clone https://github.com/jbohnslav/deepethogram.git`
1333
* `cd deepethogram`
14-
* `conda env create -f environment.yml`
15-
* Be prepared to wait a long time!! On mechanical hard drives, this may take 5-10 minutes (or more). Interrupting here will cause installation to fail.
34+
* `conda create --name deg python=3.8`
1635
* `conda activate deg`
1736
* `pip install -e .`
1837

@@ -26,31 +45,24 @@ you can have both installed on your machine without interference.
2645
* Install git for your operating system (a good idea anyway!) [Downloads page here](https://git-scm.com/download)
2746
* Open up the command line, such as terminal on mac or cmd.exe. **VERY IMPORTANT: On Windows, make sure you run the command prompt as an administrator! To do this, right click the shortcut to the command prompt, click `run as administrator`, then say yes to whatever pops up.**
2847

29-
## Installing from pip
30-
First install the latest version of PyTorch for your system. [Use this link for official instructions.](https://pytorch.org/)
31-
It should be as simple as `conda install pytorch torchvision cudatoolkit=10.2 -c pytorch`.
32-
33-
Note: if you have an RTX3000 series graphics card, such as a 3060 or 3090, please use `cudatoolkit=11.1` or higher.
34-
35-
After installing PyTorch, simply use `pip install deepethogram`.
36-
3748
## Install FFMPEG
3849
We use FFMPEG for reading and writing `.mp4` files (with libx264 encoding). Please use [this link](https://www.ffmpeg.org/)
3950
to install on your system.
4051

4152
## Startup
42-
* `conda activate deg`. This activates the environment.
43-
* type `python -m deepethogram`, in the command line to open the GUI.
53+
* `source.venv/bin/python` or (old version) `conda activate deg`. This activates the environment.
54+
* type `deepethogram` in the command line to open the GUI.
4455

45-
## Upgrading to Beta
46-
Please see [the beta docs for instructions](beta.md)
47-
48-
## Common installation problems
56+
## Common installation problems (with old, conda installers)
4957
* You might have dependency issues with other packages you've installed. Please make a new anaconda or miniconda
5058
environment with `conda create --name deg python=3.8` before installation.
51-
* `module not found: PySide2`. Some versions of PySide2 install poorly from pip. use `pip uninstall pyside2`, then
59+
* `module not found: PySide2` or `module not found: PySide6`.
60+
* For v0.3.0+, we use PySide6. Try: `pip install --force-reinstall PySide6`
61+
* For older versions with PySide2: Some versions of PySide2 install poorly from pip. use `pip uninstall pyside2`, then
5262
`conda install -c conda-forge pyside2`
53-
* When opening the GUI, you might get `Segmentation fault (core dumped)`. In this case; please `pip uninstall pyside2`,
63+
* When opening the GUI, you might get `Segmentation fault (core dumped)`.
64+
* For PySide6 (v0.3.0+): `pip install --force-reinstall PySide6`
65+
* For PySide2 (older versions): In this case; please `pip uninstall pyside2`,
5466
`conda uninstall pyside2`. `pip install pyside2`
5567
* `ImportError: C:\Users\jbohn\.conda\envs\deg2\lib\site-packages\shiboken2\libshiboken does not exist`
5668
* something went wrong with your PySide2 installation, likely on Windows.
@@ -61,10 +73,4 @@ environment with `conda create --name deg python=3.8` before installation.
6173
* `_init_pyside_extension is not defined`
6274
* This is an issue where Shiboken and PySide2 are not playing nicely together. Please `pip uninstall pyside2` and `conda remove pyside2`. Don't manually install these packages; instead, let DeepEthogram install it for you via pip. Therefore, `pip uninstall deepethogram` and `pip install deepethogram`.
6375
* `qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ".../python3.8/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.`
64-
* This is an issue with a recent version of `opencv-python` not working well with Qt. Please do `pip install --force-reinstall opencv-python-headless==4.1.2.30`
65-
66-
# Beta: Using UV
67-
68-
* install astral's UV on your system: `pip install uv`
69-
* `uv venv --python 3.7`: make a virtual environment
70-
* `uv pip install -e .`
76+
* This is an issue with a recent version of `opencv-python` not working well with Qt. Please do `pip install --force-reinstall opencv-python-headless==4.1.2.30`

0 commit comments

Comments
 (0)