CAIC-AD / YOLOPv2

YOLOPv2: Better, Faster, Stronger for Panoptic driving Perception
MIT License
544 stars 67 forks source link

Is it possible to run YOLOPv2 with camera in real-time #43

Open emredaglier opened 1 year ago

emredaglier commented 1 year ago

Currently project does not contain live camera ability.

YOLOP

# Set Dataloader
if opt.source.isnumeric():
        cudnn.benchmark = True  # set True to speed up constant image size inference
        dataset = LoadStreams(opt.source, img_size=opt.img_size)
        bs = len(dataset)  # batch_size
    else:
        dataset = LoadImages(opt.source, img_size=opt.img_size)
        bs = 1  # batch_size

YOLOPv2

 # Set Dataloader
    vid_path, vid_writer = None, None
    dataset = LoadImages(source, img_size=imgsz, stride=stride)

Is it possible to make tweak to have a live cam feed?

PlutoXN commented 1 year ago

Hello, have you implemented real-time detection with the camera now?

Azpril45 commented 10 months ago

Currently project does not contain live camera ability.

YOLOP

# Set Dataloader
if opt.source.isnumeric():
        cudnn.benchmark = True  # set True to speed up constant image size inference
        dataset = LoadStreams(opt.source, img_size=opt.img_size)
        bs = len(dataset)  # batch_size
    else:
        dataset = LoadImages(opt.source, img_size=opt.img_size)
        bs = 1  # batch_size

YOLOPv2

 # Set Dataloader
    vid_path, vid_writer = None, None
    dataset = LoadImages(source, img_size=imgsz, stride=stride)

Is it possible to make tweak to have a live cam feed?

Hi @emredaglier emredaglie, have you implemented real-time detection with the camera now?

Azpril45 commented 10 months ago

Hello, have you implemented real-time detection with the camera now?

Hi @PlutoXN , have you got any progress now with webcam?

neurodisk23 commented 8 months ago

@emredaglier @PlutoXN @Azpril45 Have you tried changing the source in line 20 of demo.py parser.add_argument('--source', type=str, default='data/example.jpg', help='source') # file/folder, 0 for webcam

you can pass your webcam serial number as an input.

Let me know if the problem persist.