Skip to content

Commit 8cfbb95

Browse files
committed
update typo
1 parent 6f9c5aa commit 8cfbb95

File tree

4 files changed

+51
-63
lines changed

4 files changed

+51
-63
lines changed

examples/enrichment-zero-shot-classification.ipynb

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"source": [
5353
"This notebook is Part 1 of the dataset enrichment notebook series where we utilize various zero-shot models to enrich datasets.\n",
5454
"\n",
55-
"+ [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) - Dataset Enrichment with Zero-Shot Classification Models\n",
56-
"+ [Part 2](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-detection.ipynb) - Dataset Enrichment with Zero-Shot Detection Models\n",
57-
"+ [Part 3](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-segmentation.ipynb) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
55+
"+ [Part 1](https://visual-layer.readme.io/docs/enrichment-zero-shot-classification) - Dataset Enrichment with Zero-Shot Classification Models\n",
56+
"+ [Part 2](https://visual-layer.readme.io/docs/enrichment-zero-shot-detection) - Dataset Enrichment with Zero-Shot Detection Models\n",
57+
"+ [Part 3](https://visual-layer.readme.io/docs/enrichment-zero-shot-segmentation) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
5858
"\n",
5959
"This notebook shows how to can enrich your image dataset using labels generated with open-source zero-shot image classification (or image tagging) models such as [Recognize Anything](https://github.com/xinyu1205/recognize-anything) (RAM) and [Tag2Text](https://github.com/xinyu1205/recognize-anything).\n",
6060
"\n",
@@ -165,7 +165,7 @@
165165
"tags": []
166166
},
167167
"source": [
168-
"### Inference on a bulk of images\n",
168+
"### 1. Inference on a bulk of images\n",
169169
"To run inference on downloaded dataset, you first need to load the image paths into a `DataFrame`."
170170
]
171171
},
@@ -617,7 +617,6 @@
617617
"id": "9da368ea-6c27-498d-aea8-4299162d6d71",
618618
"metadata": {},
619619
"source": [
620-
"## Visualize\n",
621620
"Lets plot the images and labels to verify the label quality."
622621
]
623622
},
@@ -761,7 +760,7 @@
761760
"tags": []
762761
},
763762
"source": [
764-
"### Inference on a single image\n",
763+
"### 2. Inference on a single image\n",
765764
"If you'd like more granular control, you can run inference on a single image.\n",
766765
"\n",
767766
"Let's suppose you'd like to run an inference on the following image."
@@ -913,11 +912,11 @@
913912
"\n",
914913
"This notebook is Part 1 of the dataset enrichment notebook series where we utilize various zero-shot models to enrich datasets.\n",
915914
"\n",
916-
"+ [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) - Dataset Enrichment with Zero-Shot Classification Models\n",
917-
"+ [Part 2](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-detection.ipynb) - Dataset Enrichment with Zero-Shot Detection Models\n",
918-
"+ [Part 3](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-segmentation.ipynb) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
915+
"+ [Part 1](https://visual-layer.readme.io/docs/enrichment-zero-shot-classification) - Dataset Enrichment with Zero-Shot Classification Models\n",
916+
"+ [Part 2](https://visual-layer.readme.io/docs/enrichment-zero-shot-detection) - Dataset Enrichment with Zero-Shot Detection Models\n",
917+
"+ [Part 3](https://visual-layer.readme.io/docs/enrichment-zero-shot-segmentation) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
919918
"\n",
920-
"Please check out [Part 2](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-detection.ipynb) of the series where we explore how to generate bounding boxes from the tags using zero-shot detection models like Grounding DINO. See you there!\n",
919+
"Please check out [Part 2](https://visual-layer.readme.io/docs/enrichment-zero-shot-detection) of the series where we explore how to generate bounding boxes from the tags using zero-shot detection models like Grounding DINO. See you there!\n",
921920
"\n",
922921
"Questions about this tutorial? Reach out to us on our [Slack channel](https://visuallayer.slack.com/)!\n",
923922
"\n",

examples/enrichment-zero-shot-detection.ipynb

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"source": [
5353
"This notebook is Part 2 of the enrichment notebook series where we utilize various zero-shot models to enrich the metadata of existing dataset.\n",
5454
"\n",
55-
"+ [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) - Dataset Enrichment with Zero-Shot Classification Models\n",
56-
"+ [Part 2](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-detection.ipynb) - Dataset Enrichment with Zero-Shot Detection Models\n",
57-
"+ [Part 3](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-segmentation.ipynb) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
55+
"+ [Part 1](https://visual-layer.readme.io/docs/enrichment-zero-shot-classification) - Dataset Enrichment with Zero-Shot Classification Models\n",
56+
"+ [Part 2](https://visual-layer.readme.io/docs/enrichment-zero-shot-detection) - Dataset Enrichment with Zero-Shot Detection Models\n",
57+
"+ [Part 3](https://visual-layer.readme.io/docs/enrichment-zero-shot-segmentation) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
5858
"\n",
5959
"If you haven't checkout out [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb), we highly encourage you to go through it first before proceeding with this notebook.\n",
6060
"\n",
@@ -94,7 +94,7 @@
9494
"metadata": {},
9595
"outputs": [],
9696
"source": [
97-
"!pip install -Uq fastdup mmengine mmdet groundingdino-py git+https://github.com/xinyu1205/recognize-anything.git gdown"
97+
"!pip install -Uq fastdup mmengine mmdet groundingdino-py gdown"
9898
]
9999
},
100100
{
@@ -137,7 +137,7 @@
137137
},
138138
"source": [
139139
"## Download Dataset\n",
140-
"Download the [coco-minitrain](https://github.com/giddyyupp/coco-minitrain) dataset - a curated mini training set consisting of 20% of COCO 2017 training dataset. The coco-minitrain consists of 25,000 images and annotations."
140+
"Download the [coco-minitrain](https://github.com/giddyyupp/coco-minitrain) dataset - A curated mini training set consisting of 20% of COCO 2017 training dataset. The coco-minitrain consists of 25,000 images and annotations."
141141
]
142142
},
143143
{
@@ -162,7 +162,7 @@
162162
"\n",
163163
"Apart from zero-shot recognition models, fastdup also supports zero-shot detection models like [Grounding DINO](https://github.com/IDEA-Research/GroundingDINO) (and more to come).\n",
164164
"\n",
165-
"Grounding DINO is a powerful open-set zero-shot detection model. It accepts image-text pair as inputs and outputs a bounding box."
165+
"Grounding DINO is a powerful zero-shot detection model. It accepts image-text pair as inputs and outputs a bounding box."
166166
]
167167
},
168168
{
@@ -172,21 +172,12 @@
172172
"tags": []
173173
},
174174
"source": [
175-
"### Inference on a DataFrame of images\n",
176-
"\n"
177-
]
178-
},
179-
{
180-
"cell_type": "markdown",
181-
"id": "37a3aa66-de23-4f1c-9bf0-ff7f30db2a6c",
182-
"metadata": {
183-
"tags": []
184-
},
185-
"source": [
175+
"### 1. Inference on a bulk of images\n",
176+
"\n",
186177
"\n",
187178
"In [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) of the enrichment notebook series, we utilized zero-shot image tagging models such as Recognize Anything Model and ran an inference over the images in our dataset.\n",
188179
"\n",
189-
"We ended up with a DataFrame consisting of `filename` and `ram_tags` column as follows."
180+
"We ended up with a DataFrame consisting of the `filename` and `ram_tags` column as follows.\n"
190181
]
191182
},
192183
{
@@ -337,7 +328,7 @@
337328
"id": "2ccb3248-2299-4582-8c20-99164d26ac8b",
338329
"metadata": {},
339330
"source": [
340-
"If you'd like to reproduce the above dataframe, [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) notebook details the code you need to run."
331+
"If you'd like to reproduce the above DataFrame, [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) notebook details the code you need to run."
341332
]
342333
},
343334
{
@@ -840,7 +831,7 @@
840831
"id": "097b34b9-2c41-47d4-a4bd-555df504b75f",
841832
"metadata": {},
842833
"source": [
843-
"Now lets run the enrichment with the custom prompt column."
834+
"Now lets run the enrichment with the `custom_prompt` column."
844835
]
845836
},
846837
{
@@ -1130,7 +1121,7 @@
11301121
"tags": []
11311122
},
11321123
"source": [
1133-
"### Inference on single image\n",
1124+
"### 2. Inference on single image\n",
11341125
"fastdup provides an easy way to load the Grounding DINO model and run an inference.\n",
11351126
"\n",
11361127
"Let's suppose we have the following image and would like to run an inference with the Grounding DINO model."
@@ -1342,7 +1333,7 @@
13421333
"source": [
13431334
"## Convert Annotations to COCO Format\n",
13441335
"\n",
1345-
"Once the enrichment is complete, you can also conveniently export the DataFrame into the COCO .json annotation format. For now, only the bounding boxes and labels are exported. Masks will be added in a future release."
1336+
"Once the enrichment is complete, you can also conveniently export the DataFrame into the COCO `.json` annotation format. For now, only the bounding boxes and labels are exported. Masks will be added in a future release."
13461337
]
13471338
},
13481339
{
@@ -1373,11 +1364,11 @@
13731364
"\n",
13741365
"This notebook is Part 2 of the dataset enrichment notebook series where we utilize various zero-shot models to enrich datasets.\n",
13751366
"\n",
1376-
"+ [Part 1](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-classification.ipynb) - Dataset Enrichment with Zero-Shot Classification Models\n",
1377-
"+ [Part 2](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-detection.ipynb) - Dataset Enrichment with Zero-Shot Detection Models\n",
1378-
"+ [Part 3](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-segmentation.ipynb) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
1367+
"+ [Part 1](https://visual-layer.readme.io/docs/enrichment-zero-shot-classification) - Dataset Enrichment with Zero-Shot Classification Models\n",
1368+
"+ [Part 2](https://visual-layer.readme.io/docs/enrichment-zero-shot-detection) - Dataset Enrichment with Zero-Shot Detection Models\n",
1369+
"+ [Part 3](https://visual-layer.readme.io/docs/enrichment-zero-shot-segmentation) - Dataset Enrichment with Zero-Shot Segmentation Models\n",
13791370
"\n",
1380-
"Please check out [Part 3](https://github.com/visual-layer/fastdup/blob/main/examples/enrichment-zero-shot-segmentation.ipynb) of the series where we explore how to generate masks from the bounding boxes using zero-shot segmentation models like Segment Anything. See you there!\n",
1371+
"Please check out [Part 3](https://visual-layer.readme.io/docs/enrichment-zero-shot-segmentation) of the series where we explore how to generate masks from the bounding boxes using zero-shot segmentation models like Segment Anything. See you there!\n",
13811372
"\n",
13821373
"Questions about this tutorial? Reach out to us on our [Slack channel](https://visuallayer.slack.com/)!\n",
13831374
"\n",

examples/enrichment-zero-shot.ipynb renamed to examples/enrichment-zero-shot-end-to-end.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,6 @@
19531953
"cell_type": "markdown",
19541954
"id": "dc58c743-d8e3-45b8-ae32-7cfc6474afd1",
19551955
"metadata": {
1956-
"jp-MarkdownHeadingCollapsed": true,
19571956
"tags": []
19581957
},
19591958
"source": [

examples/enrichment-zero-shot-segmentation.ipynb

Lines changed: 25 additions & 26 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)