Skip to content

Commit

Permalink
Setting scope for image reader in video_demo (#10868)
Browse files Browse the repository at this point in the history
  • Loading branch information
apatsekin committed Sep 4, 2023
1 parent a9c4c01 commit af816d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/video_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def main():
model = init_detector(args.config, args.checkpoint, device=args.device)

# build test pipeline
model.cfg.test_dataloader.dataset.pipeline[0].type = 'LoadImageFromNDArray'
model.cfg.test_dataloader.dataset.pipeline[
0].type = 'mmdet.LoadImageFromNDArray'
test_pipeline = Compose(model.cfg.test_dataloader.dataset.pipeline)

# init visualizer
Expand Down

0 comments on commit af816d3

Please sign in to comment.