-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
`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`
@n-poulsen see you approved, but all tests are failing? |
They're failing due to the issue with |
Hi there,
I am working on Windows 11, DLC 2.3.10, single animal, CPU. Any help in this regard is greatly appreciated? |
Hi @skd217 - have you been able to extract frames for any project, or does it always fail? |
Hi @n-poulsen, |
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 import deeplabcut
config_path = r"C:\path\to\DLC\project\config.yaml"
deeplabcut.extract_frames(config_path, mode="automatic", userfeedback=False) |
Hi @n-poulsen Finally, I am able to extract the frames using ipython as suggested. Initially, I was struggling with GUI. |
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 toos