hkchengrex / XMem

[ECCV 2022] XMem: Long-Term Video Object Segmentation with an Atkinson-Shiffrin Memory Model
https://hkchengrex.com/XMem/
MIT License
1.77k stars 193 forks source link

ValueError: failed to initialize intent(inout) array -- expected elsize=8 but got 4 #77

Closed STAR-811 closed 1 year ago

STAR-811 commented 1 year ago

Hi! Thank you for your excellent work! But I met an error recently: The input video contains 17 fish. And I type in the command: 'python interactive_demo.py --video ./video/17-fish_Trim_compress.avi --num_objects 1' for GUI interaction. When I annotate (click) the first frame, it reports an error after I click 6 or 7 times to annotate the 7th fish. The error is as below: image

I would appreciate it if you could help me.

hkchengrex commented 1 year ago

It looks like an internal error in f-BRS and I don't know what could have caused it. Can you try their GUI and see if you have the same problem https://github.com/SamsungLabs/fbrs_interactive_segmentation?

STAR-811 commented 1 year ago

I tried the demo on your provided website and it didn't report this error. But the segmentation performance is much worse. Can I derive anything from this?

STAR-811 commented 1 year ago

I find that when I use this GUI https://github.com/hkchengrex/MiVOS, it didn't report this error, either.

STAR-811 commented 1 year ago

I wonder whether the segmentation performance in the first frame of MiVOS is almost the same as XMem? I used the same fbrs.pth and s2m.pth model file.

STAR-811 commented 1 year ago

This problem has been solved. I tried scribble instead of click. image