Skip to content

Commit ff3fbcb

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Cleanup for e2e gallery example for transforms v2 (#7318)
Reviewed By: vmoens Differential Revision: D44416578 fbshipit-source-id: 704bee3b015e334f0695e43a02832ebfbe0289b5
1 parent d0daf14 commit ff3fbcb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"gallery_dirs": "auto_examples", # path to where to save gallery generated output
6363
"backreferences_dir": "gen_modules/backreferences",
6464
"doc_module": ("torchvision",),
65+
"remove_config_comments": True,
6566
}
6667

6768
napoleon_use_ivar = True

gallery/plot_transforms_v2_e2e.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
==================================================
3-
transforms v2: End-to-end object detection example
3+
Transforms v2: End-to-end object detection example
44
==================================================
55
66
Object detection is not supported out of the box by ``torchvision.transforms`` v1, since it only supports images.
@@ -20,7 +20,6 @@
2020
import torchvision
2121

2222

23-
# sphinx_gallery_thumbnail_number = -1
2423
def show(sample):
2524
import matplotlib.pyplot as plt
2625

@@ -125,6 +124,7 @@ def load_example_coco_detection_dataset(**kwargs):
125124
torch.manual_seed(3141)
126125
sample = dataset[0]
127126

127+
# sphinx_gallery_thumbnail_number = 2
128128
show(sample)
129129

130130

0 commit comments

Comments
 (0)