8000 Error Running DANNCE with Three Cameras · Issue #63 · spoonsso/dannce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error Running DANNCE with Three Cameras #63

8000 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

Closed
verpeutlab opened this issue Aug 10, 2021 · 2 comments
Closed

Error Running DANNCE with Three Cameras #63

verpeutlab opened this issue Aug 10, 2021 · 2 comments

Comments

@verpeutlab
Copy link

Hello! I am currently trying to execute DANNCE with the videos from three cameras. The cameras are already calibrated. I have also created a folder that contains the COM and DANNCE folders from markerless_mouse_1, the videos folder that is formatted in the layout indicated in the DANNCE READ.me file and contains the videos from all three cameras, and the label3d_dannce.mat file in the demo folder in DANNCE.

When I input the command to run DANNCE in the command window, the program cannot be completely executed because the following message appears: ValueError: generator already executing. I was looking through the code in the command window that led up to this error, and the section pasted below caught my attention.

Do you have any advice on how I can successfully run DANNCE with three cameras? Thank you!

Code pasted from Command Window:

Initializing Network...
Loading model from .\DANNCE\train_results\AVG\weights.1200-12.77642.hdf5
max
2250
Predicting on batch 0
c:\users\verpeutlab\desktop\dannce\dannce\engine\generator.py:975: UserWarning: Note: ignoring dimension mismatch in 3D labels
warnings.warn(msg)
Loading new video: videos\Camera1\0.mp4 for 0_Camera1
Loading new video: videos\Camera2\0.mp4 for 0_Camera2
Loading new video: videos\Camera1\0.mp4 for 0_Camera1
Loading new video: videos\Camera3\0.mp4 for 0_Camera3
Loading new video: videos\Camera2\0.mp4 for 0_Camera2
Loading new video: videos\Camera3\0.mp4 for 0_Camera3
C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [8,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [9,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [10,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.

@verpeutlab
Copy link
Author

I have been able to make some small changes to the code so that I no longer have the issue with duplicate cameras. However, I am still getting the same error with pytorch. Do you have any advice on what parameters need to be adjusted? A quick Google search indicated that I might have the wrong number of classes set, but I am not sure what they are referring to.

C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [8,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [9,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: block: [1289,0,0], thread: [10,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.

@spoonsso
Copy link
Owner

Hi @verpeutlab. Check out Issue #62. I think the best solution would be to use one of the pre-trained 3 camera networks.

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

2 participants
0