|
29 | 29 | "cell_type": "markdown", |
30 | 30 | "metadata": {}, |
31 | 31 | "source": [ |
32 | | - "## Setup Environment \n", |
| 32 | + "## Setup environment \n", |
33 | 33 | "MONAI installation has the optional dependencies needed for this tutorial. Therefore installing MONAI with necessary optional dependiencies is recommanded for this turtorial." |
34 | 34 | ] |
35 | 35 | }, |
|
46 | 46 | "cell_type": "markdown", |
47 | 47 | "metadata": {}, |
48 | 48 | "source": [ |
49 | | - "## Setup Imports" |
| 49 | + "## Setup imports" |
50 | 50 | ] |
51 | 51 | }, |
52 | 52 | { |
|
137 | 137 | "cell_type": "markdown", |
138 | 138 | "metadata": {}, |
139 | 139 | "source": [ |
140 | | - "## Setup Data Directory\n", |
| 140 | + "## Setup data directory\n", |
141 | 141 | "\n", |
142 | 142 | "You can specify a directory with the `MONAI_DATA_DIRECTORY` environment variable. This allows you to save results and reuse downloads. If not specified a temporary directory will be used." |
143 | 143 | ] |
|
159 | 159 | "cell_type": "markdown", |
160 | 160 | "metadata": {}, |
161 | 161 | "source": [ |
162 | | - "## Download Dataset\n", |
| 162 | + "## Download dataset\n", |
163 | 163 | "\n", |
164 | 164 | "Downloads and extracts the dataset. The dataset comes from http://medicaldecathlon.com/." |
165 | 165 | ] |
|
183 | 183 | "cell_type": "markdown", |
184 | 184 | "metadata": {}, |
185 | 185 | "source": [ |
186 | | - "## Get Inference Dataset" |
| 186 | + "## Get inference dataset" |
187 | 187 | ] |
188 | 188 | }, |
189 | 189 | { |
|
200 | 200 | "cell_type": "markdown", |
201 | 201 | "metadata": {}, |
202 | 202 | "source": [ |
203 | | - "## Define the Model Configuration\n", |
| 203 | + "## Define the model configuration\n", |
204 | 204 | "\n", |
205 | 205 | "A PretrainedConfig in Hugging Face's Transformers library is a class that holds the configuration parameters for a model. This configuration includes information such as model architecture details, hyperparameters, and other settings that define how the model behaves. The PretrainedConfig is used to initialize a model with a specific configuration or to load a model's configuration from a pre-trained checkpoint.\n", |
206 | 206 | "\n", |
|
241 | 241 | "cell_type": "markdown", |
242 | 242 | "metadata": {}, |
243 | 243 | "source": [ |
244 | | - "## Define a Hugging Face Pretrained Model\n", |
| 244 | + "## Define a hugging face pretrained model\n", |
245 | 245 | "\n", |
246 | 246 | "A PreTrainedModel in Hugging Face's Transformers library is a base class for all model classes. It provides common functionalities for loading, saving, and configuring models. This class is designed to work seamlessly with PretrainedConfig, allowing users to load pre-trained models from the Hugging Face Hub or from local files. The PreTrainedModel class ensures consistency and ease of use across different model architectures.\n", |
247 | 247 | "\n", |
|
277 | 277 | "cell_type": "markdown", |
278 | 278 | "metadata": {}, |
279 | 279 | "source": [ |
280 | | - "## Build a Hugging Face Pipeline\n", |
| 280 | + "## Build a hugging face pipeline\n", |
281 | 281 | "\n", |
282 | 282 | "A Hugging Face pipeline is a high-level API that simplifies the process of using pre-trained models for various tasks such as text classification, image classification, object detection, and more. It abstracts the complexity of loading models and tokenizers, making it easy to perform inference with just a few lines of code. The pipeline handles the preprocessing of inputs, passing data through the model, and post-processing of outputs.\n", |
283 | 283 | "\n", |
|
450 | 450 | "cell_type": "markdown", |
451 | 451 | "metadata": {}, |
452 | 452 | "source": [ |
453 | | - "## Run Pipeline\n", |
| 453 | + "## Run pipeline\n", |
454 | 454 | "\n", |
455 | 455 | "In this section, we will instantiate the pipeline and run inference with it." |
456 | 456 | ] |
|
0 commit comments