B-SOID icon indicating copy to clipboard operation
B-SOID copied to clipboard

TypeError when generating synchronized B-SOID video in analysis app

Open pnair7 opened this issue 2 years ago • 0 comments

I am trying to generate the side-by-side video in the analysis app, and am running into the following error when I click the "Generate synchronized B-SOID video" button. A possible issue is the file input "Which file corresponds to the video?", as it's unclear to me which file is meant to be passed in here. (Currently, I am passing in the .h5 pose data file from DeepLabCut.) If it's important, I am running B-SOID using the Streamlit app on Windows.

TypeError: slice indices must be integers or None or have an __index__ method

Traceback:
File "C:\ProgramData\Anaconda3\envs\bsoid_v2\lib\site-packages\streamlit\script_runner.py", line 332, in _run_script
    exec(code, module.__dict__)
File "C:\Users\xxxx\Documents\B-SOID\bsoid_app\bsoid_analysis.py", line 49, in <module>
    video_generator.main()
File "./bsoid_app\analysis_subroutines\video_analysis.py", line 95, in main
    self.generate()
File "./bsoid_app\analysis_subroutines\video_analysis.py", line 77, in generate
    self.working_dir, self.width, self.height)
File "./bsoid_app\analysis_subroutines\analysis_utilities\visuals.py", line 251, in umap_scatter
    umap_x, umap_y = embeds[mov_range[0]:mov_range[1], 0], embeds[mov_range[0]:mov_range[1], 1]

Thanks!

pnair7 avatar Oct 18 '21 20:10 pnair7