hkchengrex / XMem

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

What is the difference between s2_num_ref_frames and s2_num_frames? #95

Closed longmalongma closed 1 year ago

longmalongma commented 1 year ago

@hkchengrex Hi, thanks for your great work! What is the difference between s2_num_ref_frames and s2_num_frames? Where are they used?

image

hkchengrex commented 1 year ago

The maximum number of memory frames per query and the total number of frames in the training sequence.

https://github.com/hkchengrex/XMem/blob/083698bbb4c5ac0ffe1a8923a6c313de46169983/model/trainer.py#LL24C1-L24C55

longmalongma commented 1 year ago

The maximum number of memory frames per query and the total number of frames in the training sequence.

https://github.com/hkchengrex/XMem/blob/083698bbb4c5ac0ffe1a8923a6c313de46169983/model/trainer.py#LL24C1-L24C55

Ok, thanks! I see.