diff --git a/docs/source/conf.py b/docs/source/conf.py index 304a1cc6e22..8b4ce17de9f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -62,6 +62,7 @@ "gallery_dirs": "auto_examples", # path to where to save gallery generated output "backreferences_dir": "gen_modules/backreferences", "doc_module": ("torchvision",), + "remove_config_comments": True, } napoleon_use_ivar = True diff --git a/gallery/plot_transforms_v2_e2e.py b/gallery/plot_transforms_v2_e2e.py index 938578e4af9..533a3d5d752 100644 --- a/gallery/plot_transforms_v2_e2e.py +++ b/gallery/plot_transforms_v2_e2e.py @@ -1,6 +1,6 @@ """ ================================================== -transforms v2: End-to-end object detection example +Transforms v2: End-to-end object detection example ================================================== Object detection is not supported out of the box by ``torchvision.transforms`` v1, since it only supports images. @@ -20,7 +20,6 @@ import torchvision -# sphinx_gallery_thumbnail_number = -1 def show(sample): import matplotlib.pyplot as plt @@ -125,6 +124,7 @@ def load_example_coco_detection_dataset(**kwargs): torch.manual_seed(3141) sample = dataset[0] +# sphinx_gallery_thumbnail_number = 2 show(sample)