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

Anipose doesn't use GPU #138

Open
RiSpa5 opened this issue May 3, 2024 · 3 comments
Open

Anipose doesn't use GPU #138

RiSpa5 opened this issue May 3, 2024 · 3 comments

Comments

@RiSpa5
Copy link

RiSpa5 commented May 3, 2024

Hi everyone,
I installed Anipose on a PC following the same procedure I did for my first installation in another PC. This time, however, Anipose doesn't use the GPU when it comes to analyze videos although DeepLabCut correctly uses the GPU.
I have no idea on how or why this should happen and haven't found a similar issue on github or anywhere else.
So any help or suggestion is deeply appreciated :)

@briah1212
Copy link

I went into the DLC env lib files and edited the deeplabcut.analyze() function, adding the gputouse=2 parameter. Not sure if there are other issues, but I just added the ID of my GPU and it runs fine now.

@Scottydoesntkno
Copy link

@briah1212 Hey I was trying to find DLC env Lib files but im having trouble. Where exactly did you edit the deeplabcut.analyze() function?

@briah1212
Copy link

It's the anipose pose_video file that calls on DLC library for pose estimation. It should be in your environment python packages. On Linux with anaconda it looks something like this

/home/user/.conda/envs/DEEPLABCUT/lib/python3.9/site-packages/anipose/pose_videos.py
On line 63

deeplabcut.analyze_videos(config_name, batch,
videotype=video_ext, save_as_csv=True,
destfolder=outdir, TFGPUinference=False, gputouse=2)

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

No branches or pull requests

3 participants