Conversation
|
@MMathisLab, I followed the instructions above (new env w/ py3.10) and had no problem with either clustering or dataset creation (both with single- and multi-animal projects) 🤔 |
|
seems across PRs create_video is failing; must be a new change? |
AlexEMG
left a comment
There was a problem hiding this comment.
Looks good, data shouldn't be deleted. Will fix.
|
I suggest we merge and make a rc1 release; I can confirm this works beautifully on my preM1 build for now :) |
|
I installed using the instructions at the top, on Windows, without a problem. Quickly opened an existing project.
Details
DetailsTraceback (most recent call last):
File "C:\Users\jacksonbe3\Documents\repos\DeepLabCut\deeplabcut\gui\tabs\label_frames.py", line 45, in label_frames
_ = launch_napari(folder)
File "C:\Users\jacksonbe3\Documents\repos\DeepLabCut\deeplabcut\gui\widgets.py", line 35, in launch_napari
viewer.open(files, plugin='napari-deeplabcut')
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\components\viewer_model.py", line 931, in open
self._add_layers_with_plugins(
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\components\viewer_model.py", line 1160, in _add_layers_with_plugins
added.extend(self._add_layer_from_data(*_data))
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\components\viewer_model.py", line 1234, in _add_layer_from_data
layer = add_method(data, **(meta or {}))
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\components\viewer_model.py", line 5, in add_points
import os
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\_collections_abc.py", line 1073, in append
self.insert(len(self), value)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\components\layerlist.py", line 135, in insert
super().insert(index, new_layer)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\utils\events\containers\_selectable_list.py", line 65, in insert
super().insert(index, value)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\utils\events\containers\_evented_list.py", line 183, in insert
self.events.inserted(index=index, value=value)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\utils\events\event.py", line 757, in __call__
self._invoke_callback(cb, event if pass_event else None)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\utils\events\event.py", line 794, in _invoke_callback
_handle_exception(
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari\utils\events\event.py", line 781, in _invoke_callback
cb(event)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari_deeplabcut\_widgets.py", line 435, in on_insert
self._remap_frame_indices(layer_)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\napari_deeplabcut\_widgets.py", line 379, in _remap_frame_indices
data[:, 0] = np.vectorize(temp.get)(data[:, 0])
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\numpy\lib\function_base.py", line 2328, in __call__
return self._vectorize_call(func=func, args=vargs)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\numpy\lib\function_base.py", line 2406, in _vectorize_call
ufunc, otypes = self._get_ufunc_and_otypes(func=func, args=args)
File "C:\Users\jacksonbe3\Miniconda3\envs\DEEPLABCUT_newgui\lib\site-packages\numpy\lib\function_base.py", line 2362, in _get_ufunc_and_otypes
raise ValueError('cannot call `vectorize` on size 0 inputs '
ValueError: cannot call `vectorize` on size 0 inputs unless `otypes` is setIt is not. I ran it on the output of testscript.py and got the same error on both env build details: DetailsUnfortunately, I don't have the time right now to try fiddling with the build, but if anyone has some suggestions I'd be happy to try. |
|
Thanks @backyardbiomech! I'll see what may have happened and fix these 🐛. |
|
Hey @backyardbiomech thanks again so much! I added imageio-ffmpeg to setup now, to be doubly sure, and also the force-install; I have no issues opening the demo data with the gui, etc, so maybe try an install again now to see if fine? EDITS TO DO: @jeylau minor comment, but the "check labels" button is gone from label tab; let's add that back as it's an optional step in user guide (although I agree now just flipping rapidly through images in napari GUI is much better/faster) I also don't like that now one HAS to save before you can quit the labeling aspect; sometimes one makes a mistake and it's easier to just close and re-start, but now it forces me to save. I would like the warning once, but then allow me to close the napari-labeling GUI. |
-issue with create video index
- no longer matching the # of the nat. p paper, and some optional steps were numbered.
|
Failing to install on Ubuntu 20.04 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/userdlc/anaconda3/envs/DEEPLABCUT_newGUI/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found. |
Same behavior on separate computer (hardware) with Ubuntu 22.04 |
|
I suspect it may have to do with open-cv-python and open-cv-python-headless both being installed, but I can't seem to figure out a configuration that works. |
This PR presents a new project management GUI and labeling, re-refining, and video GUIs.
To test this branch, please git clone the repo and run
git checkout new_gui.Built a test env:
conda create --name DEEPLABCUT_newGUI python=3.9then activate the env.
conda activate DEEPLABCUT_newGUIThen run:
pip install --upgrade --force-reinstall -e '.[gui]'then to launch the GUI:
python -m deeplabcutMacbook M1 users (experimental):
first please download:
then run:
TODOs: