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
* 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`
16
35
*`conda activate deg`
17
36
*`pip install -e .`
18
37
@@ -26,31 +45,24 @@ you can have both installed on your machine without interference.
26
45
* Install git for your operating system (a good idea anyway!) [Downloads page here](https://git-scm.com/download)
27
46
* 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.**
28
47
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
-
37
48
## Install FFMPEG
38
49
We use FFMPEG for reading and writing `.mp4` files (with libx264 encoding). Please use [this link](https://www.ffmpeg.org/)
39
50
to install on your system.
40
51
41
52
## 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.
44
55
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)
49
57
* You might have dependency issues with other packages you've installed. Please make a new anaconda or miniconda
50
58
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
52
62
`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`,
54
66
`conda uninstall pyside2`. `pip install pyside2`
55
67
*`ImportError: C:\Users\jbohn\.conda\envs\deg2\lib\site-packages\shiboken2\libshiboken does not exist`
56
68
* 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.
61
73
*`_init_pyside_extension is not defined`
62
74
* 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`.
63
75
*`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