>>> import torch.utils.data >>> isinstance(train_set, torch.utils.data.Dataset) True >>> len(train_set) 354 >>> train_set[0] ( <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=320x263 at 0x7F4CFE7E52D0>, Target( annotations=FrameAnnotations(tags=[ { 'attributes': [], 'frame': 0, 'group': None, 'id': 426655, 'label_id': 431494, 'source': 'manual' } ], shapes=[]), label_id_to_index=mappingproxy({431492: 0, 431493: 1, 431494: 2, 431495: 3, 431496: 4}) ) )
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter