Skip to content

Model Zoo with longer video crashes #2358

@tomgreen66

Description

@tomgreen66

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

When running topviewmouse with a 15 minute video (resolution 1616 × 1077, H.264) and it crashes with error. Using a shorter video it seems to run (by trimming in the GUI).

Operating System

CentOS 7 Linux, but using container with Ubuntu 20.04.

DeepLabCut version

2.3.5

DeepLabCut mode

single animal

Device type

Tesla V100 16GB

Steps To Reproduce

  1. Select Model Zoo from GUI
  2. Use video of mouse
  3. Crashes with error

Relevant log output

2023-08-20 00:44:12.221784: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1532] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14626 MB memory:  -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:3b:00.0, compute capability: 7.0

/opt/deeplabcut/venv/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.
  warnings.warn('`layer.apply` is deprecated and '
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/deeplabcut/pose_estimation_tensorflow/core/train.py", line 83, in load_and_enqueue
    batch_np = dataset.next_batch()
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/deeplabcut/pose_estimation_tensorflow/datasets/pose_multianimal_imgaug.py", line 520, in next_batch
    batch_images, batch_joints = self.pipeline(
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/imgaug/augmenters/meta.py", line 2008, in __call__
    return self.augment(*args, **kwargs)
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/imgaug/augmenters/meta.py", line 1979, in augment
    batch_aug = self.augment_batch_(batch, hooks=hooks)
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/imgaug/augmenters/meta.py", line 596, in augment_batch_
    batch_norm = batch.to_normalized_batch()
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/imgaug/augmentables/batches.py", line 196, in to_normalized_batch
    images_unaug = nlib.normalize_images(self.images_unaug)
  File "/opt/deeplabcut/venv/lib/python3.8/site-packages/imgaug/augmentables/normalization.py", line 142, in normalize_images
    assert image.ndim in [2, 3], (
AttributeError: 'NoneType' object has no attribute 'ndim'

Anything else?

I have been unsure whether to report this - it seems very specific but advice whether the video format could produce this.

Code of Conduct

Metadata

Metadata

Assignees

Labels

ModelZoorelated to models/code for modezoo.deeplabcut.orgbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions