-
Notifications
You must be signed in to change notification settings - Fork 32
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
Compatible with Windows? #146
Comments
Hi @DavidGill159, thanks for your interest in lightning pose! Our package depends heavily on the NVIDIA DALI package, which does not run natively on Windows. However, you might try setting up the Windows Subsystem for Linux. You can see some responses from the DALI developers to this question in this DALI issue. I am not aware of anybody using WSL with lightning pose at this time, but please let us know if you try it out! |
I used WSL to set up the lightning pose, it works great. |
@Wei21st that's great to hear! Would you mind posting some more info about how you got it set up? I'd like to add that information to the documentation |
Actually it went very smoothly. Mostly I just followed the instruction on your document. Specifically I used Method 2: conda from source¶.
After installation, the training and inference were without any issues when following the documentations. Not sure if these will help. Actually because the process was so smooth I can't recall many details, which might be a good news for other users. I guess majority of the problem occur during installation is minor and perhaps consulting with a people knowing the linux system (this was how I did) will solve most of it. |
@Wei21st @themattinthehatt Hi, I have setup my WSL and ran those 2 sudo install lines in a Windows ubunta terminal. I have succeeded in the LP installation up until step 4. I receive this error: |
When you installed the all dependencies in step3, did it throw any errors? You may verify this by re-run step3. |
hey, no errors were thrown when initially running step3 or re-running it like you recommended. Yes I git-cloned within the linux system. UPDATE: I created a virtual environment and redid step3 onswards from there and everything seems to have ran successfully now. See attached the test session results: @Wei21st thanks for the help!
|
@DavidGill159 so glad you were able to get WSL working! Thanks @Wei21st for your help 🙏 We do in fact have a GUI, it is separate from the lightning-pose repo. You can find it here: https://github.com/Lightning-Universe/Pose-app Re: WSL installation steps, this would be very much appreciated!! Would you want to update the actual docs and do a Pull Request? That way you get the credit for your work. If so we can discuss what that looks like. Alternatively you can just send the steps to this issue and I can update the docs (with a pointer to the issue so you can get credit that way). |
Will it work for training and Inference?
I have been using my labels from a deeplabcut project. The frames that are labelled are not consistent across cameras.
Sure! I am happy to do a Pull Request. |
ahhh, so actually this changes things. the multiview updates that we've been working on are specifically designed to take advantage of labels across different views at the same time point. In your case, if you don't have this consistency, then you can just treat your project like a single-camera dataset, just as you've been doing with DLC (and the multi-view component doesn't come in until the last triangulation step). You can then use the Pose-app GUI as-is, and you'd just need to upload/label single videos at a time (making sure to include videos from different views).
Thank you! Let me get back to you about this soon. |
Ah I see. In that case, Im assuming TCN model wont be used? |
You can still use the TCN! It only requires adjacent frames on a view-by-view basis. In order to use it though you'll need add the context frames to your LP project. So if you have a frame called Here's a function that we use in the app to perform this extraction: https://github.com/Lightning-Universe/Pose-app/blob/main/lightning_pose_app/backend/extract_frames.py#L272 |
So for the PR, you'll first have to make a fork of the repo, and then you can update the following file:
How does that sound? |
Im trying to label videos in the installed app but when loading my videos, I get the error 'file must be 200mb or smaller'. My video files are AVIs so are generally quite big. do you plan on supporting larger files in the future? I also noticed that when creating a project, it didn't detect tensorflow: |
Yes you can upload larger file sizes, you just need to set a flag on the command line before you launch the app; see the FAQ "How do I increase the file upload size limit?" here. Re: the tensorflow installation, this is not a problem. Lightning Pose is built on pytorch, not tensorflow. We use tensorboard for visualization of training, which is actually agnostic to the underlying deep learning library. When tensorboard is launched it looks for a tensorflow installation, which enables additional features, but these are not features that we utilize. |
Great, thanks! I launch the 500mb app and upload my videos (24 x ~200MB .avi files) successfully. But when extracting the frames, frames are extracted for the first 6 videos without issue then the app crashes with a server error. |
@DavidGill159 would you mind posting this as a new issue in the Pose-app issues? I'll answer over there. |
Hi Matt, |
@DavidGill159 thanks for this!! It looks like you opened the PR in your fork rather than the original lightning pose repo. Here are some instructions for how to create a PR across forks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork When successful you should see the open PR here: https://github.com/danbider/lightning-pose/pulls |
My bad. It is there now! :) |
I see it! Will take a look later this morning and get back to you 🙏 |
Updates merged, and docs are published: https://lightning-pose.readthedocs.io/en/latest/source/installation.html# |
Hi, do you have plans to provide a Windows-compatible installation option? The installation instructions specify Linux compatibility only and I have now run out of credits for further use of the cloud version. Thanks in advance.
The text was updated successfully, but these errors were encountered: