@@ -38,13 +38,12 @@ download:
3838 # Step2-2. UNTAR: tar -xzf $(DATADIR)/[SOURCE_FILE] -C [*_source/data/]
3939 # Step2-3. AS-IS: cp $(DATADIR)/[SOURCE_FILE] [*_source/data/]
4040
41- # Run structured downloads first (will also make directories)
41+ # Run structured downloads first (will also make directories
4242 python3 .build/download_data.py
4343
4444 # data loader tutorial
4545 wget -nv -N https://download.pytorch.org/tutorial/faces.zip -P $(DATADIR)
4646 unzip $(ZIPOPTS) $(DATADIR)/faces.zip -d beginner_source/data/
47- unzip $(ZIPOPTS) $(DATADIR)/faces.zip -d recipes_source/recipes/data/
4847
4948 wget -nv -N https://download.pytorch.org/models/tutorials/4000_checkpoint.tar -P $(DATADIR)
5049 cp $(DATADIR)/4000_checkpoint.tar beginner_source/data/
@@ -62,30 +61,6 @@ download:
6261 wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/cornell_movie_dialogs_corpus_v2.zip -P $(DATADIR)
6362 unzip $(ZIPOPTS) $(DATADIR)/cornell_movie_dialogs_corpus_v2.zip -d beginner_source/data/
6463
65- # Download model for advanced_source/dynamic_quantization_tutorial.py
66- wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/word_language_model_quantize.pth -P $(DATADIR)
67- cp $(DATADIR)/word_language_model_quantize.pth advanced_source/data/word_language_model_quantize.pth
68-
69- # Download data for advanced_source/dynamic_quantization_tutorial.py
70- wget -nv -N https://s3.amazonaws.com/pytorch-tutorial-assets/wikitext-2.zip -P $(DATADIR)
71- unzip $(ZIPOPTS) $(DATADIR)/wikitext-2.zip -d advanced_source/data/
72-
73- # Download model for advanced_source/static_quantization_tutorial.py
74- wget -nv -N https://download.pytorch.org/models/mobilenet_v2-b0353104.pth -P $(DATADIR)
75- cp $(DATADIR)/mobilenet_v2-b0353104.pth advanced_source/data/mobilenet_pretrained_float.pth
76-
77- # Download model for prototype_source/graph_mode_static_quantization_tutorial.py
78- wget -nv -N https://download.pytorch.org/models/resnet18-5c106cde.pth -P $(DATADIR)
79- cp $(DATADIR)/resnet18-5c106cde.pth prototype_source/data/resnet18_pretrained_float.pth
80-
81- # Download vocab for beginner_source/flava_finetuning_tutorial.py
82- wget -nv -N http://dl.fbaipublicfiles.com/pythia/data/vocab.tar.gz -P $(DATADIR)
83- tar $(TAROPTS) -xzf $(DATADIR)/vocab.tar.gz -C ./beginner_source/data/
84-
85- # Download dataset for beginner_source/torchtext_custom_dataset_tutorial.py
86- wget -nv -N https://www.manythings.org/anki/deu-eng.zip -P $(DATADIR)
87- unzip -o $(DATADIR)/deu-eng.zip -d beginner_source/data/
88-
8964 # Download PennFudanPed dataset for intermediate_source/torchvision_tutorial.py
9065 wget https://www.cis.upenn.edu/~jshi/ped_html/PennFudanPed.zip -P $(DATADIR)
9166 unzip -o $(DATADIR)/PennFudanPed.zip -d intermediate_source/data/
@@ -94,6 +69,11 @@ download:
9469 python -m spacy download en_core_web_sm
9570 python -m spacy download de_core_news_sm
9671
72+ download-last-reviewed-json :
73+ @echo " Downloading tutorials-review-data.json..."
74+ curl -o tutorials-review-data.json https://raw.githubusercontent.com/pytorch/tutorials/refs/heads/last-reviewed-data-json/tutorials-review-data.json
75+ @echo " Finished downloading tutorials-review-data.json."
76+
9777requirements-minimal :
9878 pip install -r .build/requirements-minimal.txt
9979
@@ -104,24 +84,28 @@ requirements-full:
10484docs :
10585 make requirements-full
10686 make download
87+ make download-last-reviewed-json
10788 make html
89+ @python .build/insert_last_verified.py $(BUILDDIR ) /html
10890 rm -rf docs
10991 cp -r $(BUILDDIR ) /html docs
92+ touch docs/.nojekyll
11093 cp CNAME docs/CNAME
11194 cp robots.txt docs/robots.txt
112- touch docs/.nojekyll
113- @echo
114- @echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
95+ rm -rf tutorials-review-data.json
11596
11697html-noplot :
117- make requirements-minimal
11898 $(SPHINXBUILD ) -D plot_gallery=0 -b html $(SPHINXOPTS ) " $( SOURCEDIR) " " $( BUILDDIR) /html"
119- # bash .jenkins /remove_invisible_code_block_batch.sh "$(BUILDDIR)/html"
99+ # bash .build /remove_invisible_code_block_batch.sh "$(BUILDDIR)/html"
120100 @echo
121- @echo " HTML-ONLY build finished. The HTML pages are in $( BUILDDIR) /html."
101+ make download-last-reviewed-json
102+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
103+ @echo " Running post-processing script to insert 'Last Verified' dates..."
104+ @python .build/insert_last_verified.py $(BUILDDIR ) /html
105+ rm -f tutorials-review-data.json
122106
123107clean-cache :
124108 make clean
125- rm -rf advanced beginner intermediate recipes prototype
109+ rm -rf advanced beginner intermediate recipes
126110 # remove additional python files downloaded for torchvision_tutorial.py
127- rm -f intermediate_source/engine.py intermediate_source/utils.py intermediate_source/transforms.py intermediate_source/coco_eval.py intermediate_source/coco_utils.py
111+ rm -rf intermediate_source/engine.py intermediate_source/utils.py intermediate_source/transforms.py intermediate_source/coco_eval.py intermediate_source/coco_utils.py
0 commit comments