lxtGH / OMG-Seg

OMG-LLaVA and OMG-Seg codebase [CVPR-24 and NeurIPS-24]
Other
1.32k stars 50 forks source link

question about demo #43

Closed ShelbyXu9 closed 2 months ago

ShelbyXu9 commented 2 months ago

hi, thanks for your great work. I have met some errors when i run PYTHONPATH=. python tools/gen_cls.py demo/configs/m2_convl.py. I found, bs is 5194, NUM_BATCH is 256, local_bs is 21, it might cause error in https://github.com/lxtGH/OMG-Seg/blob/main/tools/gen_cls.py#L156 because of slice error Is it a falut or somewhere i did wrong. image

HarborYuan commented 2 months ago

Thanks for your interest.

In Python, supposing a list list_a with length 10. list_a[0:100] will return the same thing as list_a[0:10]. Please let me know if this explains your doubts. If not, please feel free to describe your questions in detail.