-
Notifications
You must be signed in to change notification settings - Fork 491
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
The tag name is always person #557
Comments
It didn't solve the problem. |
modified the video_demo.py file by mimicking the image_demo.py file and was able to label the video correctly. from mmyolo.registry import VISUALIZERS BOUNDING_BOX_ANNOTATOR = sv.BoundingBoxAnnotator(thickness=1) class LabelAnnotator(sv.LabelAnnotator):
LABEL_ANNOTATOR = LabelAnnotator(text_padding=4, def parse_args(): def inference_detector(model, image, texts, test_pipeline, score_thr=0.3):
def prepare_frame_output_dir(frame_output_dir): def main():
if name == 'main': ` |
When I do video inference, I enter the cue text, e.g. aircraft, and save the resulting video, and it does detect the aircraft, but the label name is always person. i tried to print the inference result, and the mapped labels are always tensor([0]) . What is the cause of this, the detection is spot on but the tag name is always person.
python video_demo.py /root/autodl-tmp/YOLO-World/configs/pretrain/yolo_world_v2_l_vlpan_bn_2e-3_100e_4x8gpus_obj365v1_goldg_train_1280ft_lvis_minival.py /root/autodl-tmp/YOLO-World/pretrained_weights/yolo_world_v2_l_obj365v1_goldg_pretrain_1280ft-9babe3f6.pth /root/autodl-tmp/YOLO-World/source_data/9401.mp4 'airplane' --out /root/autodl-tmp/YOLO-World/source_data/5.mp4
The text was updated successfully, but these errors were encountered: