Thank you! We'll be in touch ASAP.
Something went wrong, please try again or contact us directly at contact@dagshub.com
Deci-AI:master
deci-ai:feature/SG-594-segmentation_readme
from super_gradients.training.datasets.pose_estimation_datasets.coco_keypoints import COCOKeypointsDataset from super_gradients.training.datasets.pose_estimation_datasets.target_generators import DEKRTargetsGenerator from super_gradients.training.transforms.keypoint_transforms import KeypointsCompose, KeypointsRandomVerticalFlip def test_dataset(): target_generator = DEKRTargetsGenerator( output_stride=4, sigma=2, center_sigma=4, bg_weight=0.1, offset_radius=4, ) dataset = COCOKeypointsDataset( data_dir="e:/coco2017", images_dir="images/train2017", json_file="annotations/person_keypoints_train2017.json", include_empty_samples=False, transforms=KeypointsCompose( [ KeypointsRandomVerticalFlip(), ] ), target_generator=target_generator, ) assert dataset is not None assert dataset[0] is not None
Press p or to see the previous file or, n or to see the next file