Skip to content

MHNCITY Violence 모듈에서 오류 발생 #8

@qqaazz0222

Description

@qqaazz0222

evaluate_frames 함수 동작시 오류 발생

Process Process-4:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/System_Integration/_HAR/MHNCITY/violence.py", line 76, in Violence
    max_score_1, mean_score_1  = evaluate_frames(fight_model_1, skeletons)
  File "/System_Integration/_HAR/MHNCITY/model.py", line 202, in evaluate_frames
    all_scores = model.forward(all_keypoint_batches)
  File "/System_Integration/_HAR/MHNCITY/model.py", line 100, in forward
    flattened_tensor = batch_keypoints_tensor.view(-1, 2)
RuntimeError: shape '[-1, 2]' is invalid for input of size 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions