Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows video selection for extraction in the GUI #2286

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

KonradDanielewski
Copy link
Collaborator

QtWidgets.QFileDialog.getOpenFileNames outputs unix formated paths which on Windows leads to wrong reading and uninformative output "Video file corrupted" which isn't true. This fix normalizes the path according to os

`QtWidgets.QFileDialog.getOpenFileNames` outputs unix formated paths which on Windows leads to wrong reading and uninformative output "Video file corrupted" which isn't true. This fix normalizes the path according to `os`
@MMathisLab
Copy link
Member

@n-poulsen see you approved, but all tests are failing?

@n-poulsen
Copy link
Collaborator

They're failing due to the issue with scipy-1.11.1 (which is fixed as we pinned scipy). I'll merge the changes made to main and re-run the tests.

@jeylau jeylau merged commit d2ef2c0 into DeepLabCut:main Jul 19, 2023
11 checks passed
@KonradDanielewski KonradDanielewski deleted the patch-4 branch July 27, 2023 14:12
@skd217
Copy link

skd217 commented Aug 19, 2024

Hi there,
Based on the earlier conversations, I checked the component.py file and found correct. But I am still facing the problem with extracting frames from videos. Even though the pop-up appears instantly stating frames are extracted successfully, but the process did not run actually. On the prompt, it did not show any run command:

python -m deeplabcut
2024-08-19 18:50:34.261950: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-08-19 18:50:34.262322: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Loading DLC 2.3.10...
Starting GUI...

I am working on Windows 11, DLC 2.3.10, single animal, CPU.

Any help in this regard is greatly appreciated?

@n-poulsen
Copy link
Collaborator

Hi @skd217 - have you been able to extract frames for any project, or does it always fail?

@skd217
Copy link

skd217 commented Sep 2, 2024

Hi @n-poulsen,
Unfortunately, it’s still not working. I also attempted converting the videos (originally in .mov format, recorded on an iPhone) into different formats (.mp4, .avi, etc.), but that didn’t resolve the issue either.

@n-poulsen
Copy link
Collaborator

Are you working with the GUI or with code? If you're working with the DeepLabCut GUI, could I ask you to run the commands to extract frames using python code, and let me know if any errors occur?

You can extract frames with code (as mentioned in our docs) by running ipython from your Anaconda prompt, and then running:

import deeplabcut

config_path = r"C:\path\to\DLC\project\config.yaml"
deeplabcut.extract_frames(config_path, mode="automatic", userfeedback=False)

@skd217
Copy link

skd217 commented Sep 3, 2024

Hi @n-poulsen Finally, I am able to extract the frames using ipython as suggested. Initially, I was struggling with GUI.
Thank you very much !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants