Skip to content
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

ValueError: operands could not be broadcast together with shapes (152960,) (458880,) #77

Open
OkGuai opened this issue Nov 7, 2024 · 1 comment

Comments

@OkGuai
Copy link

OkGuai commented Nov 7, 2024

I'm getting the following error when I try to infer from an image.

  • NUM_GPUS=1
  • JOB_NAME=painter_vit_large
  • CKPT_FILE=painter_vit_large.pth
  • PROMPT=ADE_train_00001098
  • SIZE=448
  • MODEL=painter_vit_large_patch16_input896x448_win_dec64_8glb_sl1
  • CKPT_PATH=premodel/painter_vit_large.pth
  • DST_DIR=models_inference/premodel/ade20k_semseg_inference_painter_vit_large.pth_ADE_train_00001098_size448
  • python eval/ade20k_semantic/ADE20kSemSegEvaluatorCustom.py --pred_dir models_inference/premodel/ade20k_semseg_inference_painter_vit_large.pth_ADE_train_00001098_size448
    10
    10
    loading predictions
    processing
    0%| | 0/10 [00:00<?, ?it/s]
    Traceback (most recent call last):
    File "/mnt/workspace/Painter/Painter/eval/ade20k_semantic/ADE20kSemSegEvaluatorCustom.py", line 178, in
    evaluator.process(inputs, outputs)
    File "/mnt/workspace/Painter/Painter/eval/ade20k_semantic/ADE20kSemSegEvaluatorCustom.py", line 101, in process
    (self._num_classes + 1) * pred.reshape(-1) + gt.reshape(-1),
    ValueError: operands could not be broadcast together with shapes (152960,) (458880,)
@OkGuai
Copy link
Author

OkGuai commented Nov 7, 2024

Any help would be very much appreciated.

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

1 participant