Skip to content

IndexError: list index out of range #2469

@LingZHouXin

Description

@LingZHouXin

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

by using the DEEPLABCUT GUI , I tried to use the SuperAnimal-TopViewMouse analysis. It gives me an Index error.

Operating System

win11

DeepLabCut version

DLC 2.3.8

DeepLabCut mode

single animal

Device type

i9-13900kf
rtx4090

Steps To Reproduce

in the Conda Environment
run GUI by using: “ python -m deeplabcut"
in GUI, attempt to run Model Zoo
Add mp4 video
Click Run

Relevant log output

(DLC) PS D:\model\DeepLabCut-main> python -m deeplabcut
Loading DLC 2.3.8...
Starting GUI...
Traceback (most recent call last):
  File "D:\model\DeepLabCut-main\deeplabcut\gui\utils.py", line 22, in run
    self.func()
  File "D:\model\DeepLabCut-main\deeplabcut\pose_estimation_tensorflow\predict_supermodel.py", line 98, in video_inference_superanimal
    adapter.before_adapt_inference(
  File "D:\model\DeepLabCut-main\deeplabcut\modelzoo\api\spatiotemporal_adapt.py", line 114, in before_adapt_inference
    self.init_weights, datafiles = superanimal_inference.video_inference(
  File "D:\model\DeepLabCut-main\deeplabcut\modelzoo\api\superanimal_inference.py", line 314, in video_inference
    init_weights = os.path.abspath(snapshots[0]).replace(".index", "")
IndexError: list index out of range

Anything else?

No response

Code of Conduct

Metadata

Metadata

Assignees

Labels

ModelZoorelated to models/code for modezoo.deeplabcut.org

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions