Commit 1ed38095 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix doc build (#3125)

Summary:
Fix build_doc job

https://app.circleci.com/pipelines/github/pytorch/audio/15217/workflows/ce50b317-a59e-4741-b8d2-59129420deb8

- build.ffmpeg.html might not exist when IPython notebook is processed. Changing to main doc URL.
- Fix bash cell syntax in HW tutorial
- Fix C++ doc
- Fix duplicated target name in streamwriter tutorial

Pull Request resolved: https://github.com/pytorch/audio/pull/3125

Reviewed By: xiaohui-zhang

Differential Revision: D43724078

Pulled By: mthrok

fbshipit-source-id: ea7d46ec5e377cf2fbd7c3798df57da73750ac5c
parent 9133f2a0
...@@ -873,7 +873,7 @@ jobs: ...@@ -873,7 +873,7 @@ jobs:
environment: environment:
BUILD_GALLERY: 1 BUILD_GALLERY: 1
TORCH_SHOW_CPP_STACKTRACES: 1 TORCH_SHOW_CPP_STACKTRACES: 1
no_output_timeout: 30m no_output_timeout: 60m
- persist_to_workspace: - persist_to_workspace:
root: ./ root: ./
paths: paths:
......
...@@ -873,7 +873,7 @@ jobs: ...@@ -873,7 +873,7 @@ jobs:
environment: environment:
BUILD_GALLERY: 1 BUILD_GALLERY: 1
TORCH_SHOW_CPP_STACKTRACES: 1 TORCH_SHOW_CPP_STACKTRACES: 1
no_output_timeout: 30m no_output_timeout: 60m
- persist_to_workspace: - persist_to_workspace:
root: ./ root: ./
paths: paths:
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"\n", "\n",
"Using them in TorchAduio requires FFmpeg built with NVENC/NVDEC support. Google Colab has such FFmpeg pre-installed, so you can [run this tutorial on Google Colab](https://colab.research.google.com/drive/1DDah_IaGULEO66CfQWltRqaVheBkiXdN#sandboxMode=true).\n", "Using them in TorchAduio requires FFmpeg built with NVENC/NVDEC support. Google Colab has such FFmpeg pre-installed, so you can [run this tutorial on Google Colab](https://colab.research.google.com/drive/1DDah_IaGULEO66CfQWltRqaVheBkiXdN#sandboxMode=true).\n",
"\n", "\n",
"If you want to enable GPU decoding/encoding, please refer to [Enabling GPU video decoder/encoder](./build.ffmpeg.html)." "If you want to enable GPU decoding/encoding, please refer to [Enabling GPU video decoder/encoder](https://pytorch.org/audio/main/build.ffmpeg.html)."
] ]
}, },
{ {
...@@ -64,8 +64,9 @@ ...@@ -64,8 +64,9 @@
} }
], ],
"source": [ "source": [
"!pip uninstall -y -q torch torchaudio torchvision torchtext\n", "%%bash\n",
"!pip install --progress-bar off --pre torch torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu117 2> /dev/null" "pip uninstall -y -q torch torchaudio torchvision torchtext\n",
"pip install --progress-bar off --pre torch torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu117 2> /dev/null"
] ]
}, },
{ {
...@@ -115,7 +116,8 @@ ...@@ -115,7 +116,8 @@
} }
], ],
"source": [ "source": [
"!pip3 install --progress-bar off boto3 2> /dev/null" "%%bash\n",
"pip3 install --progress-bar off boto3 2> /dev/null"
] ]
}, },
{ {
...@@ -126,7 +128,8 @@ ...@@ -126,7 +128,8 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"!wget -q -O input.mp4 \"https://download.pytorch.org/torchaudio/tutorial-assets/stream-api/NASAs_Most_Scientifically_Complex_Space_Observatory_Requires_Precision-MP4_small.mp4\"" "%%bash\n",
"wget -q -O input.mp4 \"https://download.pytorch.org/torchaudio/tutorial-assets/stream-api/NASAs_Most_Scientifically_Complex_Space_Observatory_Requires_Precision-MP4_small.mp4\""
] ]
}, },
{ {
...@@ -177,7 +180,8 @@ ...@@ -177,7 +180,8 @@
} }
], ],
"source": [ "source": [
"!nvidia-smi" "%%bash\n",
"nvidia-smi"
] ]
}, },
{ {
...@@ -219,7 +223,8 @@ ...@@ -219,7 +223,8 @@
} }
], ],
"source": [ "source": [
"!ffmpeg -hide_banner -decoders | grep -i cuvid" "%%bash\n",
"ffmpeg -hide_banner -decoders | grep -i cuvid"
] ]
}, },
{ {
...@@ -246,7 +251,8 @@ ...@@ -246,7 +251,8 @@
} }
], ],
"source": [ "source": [
"!ffmpeg -hide_banner -encoders | grep -i nvenc" "%%bash\n",
"ffmpeg -hide_banner -encoders | grep -i nvenc"
] ]
}, },
{ {
...@@ -311,7 +317,8 @@ ...@@ -311,7 +317,8 @@
} }
], ],
"source": [ "source": [
"!ffmpeg -hide_banner -y -vsync 0 -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid -resize 360x240 -i \"https://download.pytorch.org/torchaudio/tutorial-assets/stream-api/NASAs_Most_Scientifically_Complex_Space_Observatory_Requires_Precision-MP4_small.mp4\" -c:a copy -c:v h264_nvenc -b:v 5M test.mp4" "%%bash\n",
"ffmpeg -hide_banner -y -vsync 0 -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid -resize 360x240 -i \"https://download.pytorch.org/torchaudio/tutorial-assets/stream-api/NASAs_Most_Scientifically_Complex_Space_Observatory_Requires_Precision-MP4_small.mp4\" -c:a copy -c:v h264_nvenc -b:v 5M test.mp4"
] ]
}, },
{ {
......
...@@ -76,7 +76,7 @@ seek ...@@ -76,7 +76,7 @@ seek
process_packet process_packet
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
.. doxygenfunction:: torchaudio::io::StreamReader::process_packet .. doxygenfunction:: torchaudio::io::StreamReader::process_packet()
process_packet_block process_packet_block
^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
......
...@@ -246,7 +246,7 @@ with s.open(): ...@@ -246,7 +246,7 @@ with s.open():
# <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-sdl-demo.mp4"> # <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-sdl-demo.mp4">
# </video> # </video>
# #
# [`code <https://download.pytorch.org/torchaudio/tutorial-assets/sdl.py>`_] # [`code <https://download.pytorch.org/torchaudio/tutorial-assets/sdl.py>`__]
# #
###################################################################### ######################################################################
...@@ -292,7 +292,7 @@ with s.open(): ...@@ -292,7 +292,7 @@ with s.open():
# <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-rtmp-demo.mp4"> # <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-rtmp-demo.mp4">
# </video> # </video>
# #
# [`code <https://download.pytorch.org/torchaudio/tutorial-assets/rtmp.py>`_] # [`code <https://download.pytorch.org/torchaudio/tutorial-assets/rtmp.py>`__]
# #
...@@ -324,7 +324,7 @@ with s.open(): ...@@ -324,7 +324,7 @@ with s.open():
# <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-udp-demo.mp4"> # <source src="https://download.pytorch.org/torchaudio/tutorial-assets/torchaudio-udp-demo.mp4">
# </video> # </video>
# #
# [`code <https://download.pytorch.org/torchaudio/tutorial-assets/udp.py>`_] # [`code <https://download.pytorch.org/torchaudio/tutorial-assets/udp.py>`__]
# #
###################################################################### ######################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment