Skip to content

Commit 1f30057

Browse files
committed
nb clean
1 parent a592d4e commit 1f30057

26 files changed

+249
-9020
lines changed

nbs/audio.datasets.stt.ipynb

+9-125
Large diffs are not rendered by default.

nbs/audio.datasets.tts.ipynb

+9-230
Large diffs are not rendered by default.

nbs/audio.embeddings.ipynb

+7-107
Large diffs are not rendered by default.

nbs/audio.features.ipynb

+3-47
Large diffs are not rendered by default.

nbs/audio.utils.ipynb

+1-12
Large diffs are not rendered by default.

nbs/data.core.ipynb

+1-10
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,7 @@
2020
"cell_type": "code",
2121
"execution_count": null,
2222
"metadata": {},
23-
"outputs": [
24-
{
25-
"name": "stdout",
26-
"output_type": "stream",
27-
"text": [
28-
"The autoreload extension is already loaded. To reload it, use:\n",
29-
" %reload_ext autoreload\n"
30-
]
31-
}
32-
],
23+
"outputs": [],
3324
"source": [
3425
"#| hide\n",
3526
"%load_ext autoreload\n",

nbs/data.lhotse.ipynb

+16-263
Large diffs are not rendered by default.

nbs/docker.ipynb

+1-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@
1414
"cell_type": "code",
1515
"execution_count": null,
1616
"metadata": {},
17-
"outputs": [
18-
{
19-
"name": "stdout",
20-
"output_type": "stream",
21-
"text": [
22-
"The autoreload extension is already loaded. To reload it, use:\n",
23-
" %reload_ext autoreload\n"
24-
]
25-
}
26-
],
17+
"outputs": [],
2718
"source": [
2819
"#| hide\n",
2920
"%load_ext autoreload\n",

nbs/image.blip.ipynb

+5-68
Large diffs are not rendered by default.

nbs/image.clip.ipynb

+3-27
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@
6868
"cell_type": "code",
6969
"execution_count": null,
7070
"metadata": {},
71-
"outputs": [
72-
{
73-
"name": "stdout",
74-
"output_type": "stream",
75-
"text": [
76-
"tensor([[0.9949, 0.0051]], grad_fn=<SoftmaxBackward0>)\n"
77-
]
78-
}
79-
],
71+
"outputs": [],
8072
"source": [
8173
"model = CLIPModel.from_pretrained(\"openai/clip-vit-base-patch32\")\n",
8274
"processor = CLIPProcessor.from_pretrained(\"openai/clip-vit-base-patch32\")\n",
@@ -133,15 +125,7 @@
133125
"cell_type": "code",
134126
"execution_count": null,
135127
"metadata": {},
136-
"outputs": [
137-
{
138-
"name": "stderr",
139-
"output_type": "stream",
140-
"text": [
141-
"Repo card metadata block was not found. Setting CardData to empty.\n"
142-
]
143-
}
144-
],
128+
"outputs": [],
145129
"source": [
146130
"paintings = load_dataset(\"huggan/few-shot-art-painting\")"
147131
]
@@ -150,15 +134,7 @@
150134
"cell_type": "code",
151135
"execution_count": null,
152136
"metadata": {},
153-
"outputs": [
154-
{
155-
"name": "stderr",
156-
"output_type": "stream",
157-
"text": [
158-
"100%|██████████| 1000/1000 [02:23<00:00, 6.96it/s]\n"
159-
]
160-
}
161-
],
137+
"outputs": [],
162138
"source": [
163139
"all_image_embs_path = Path(\"paintings_embeddings.npy\")\n",
164140
"if all_image_embs_path.exists():\n",

nbs/image.datasets.ipynb

+8-337
Large diffs are not rendered by default.

nbs/image.med.ipynb

+1-12
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,7 @@
4444
"cell_type": "code",
4545
"execution_count": null,
4646
"metadata": {},
47-
"outputs": [
48-
{
49-
"data": {
50-
"text/plain": [
51-
"'\\n * Copyright (c) 2022, salesforce.com, inc.\\n * All rights reserved.\\n * SPDX-License-Identifier: BSD-3-Clause\\n * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause\\n * By Junnan Li\\n * Based on huggingface code base\\n * https://github.com/huggingface/transformers/blob/v4.15.0/src/transformers/models/bert\\n'"
52-
]
53-
},
54-
"execution_count": null,
55-
"metadata": {},
56-
"output_type": "execute_result"
57-
}
58-
],
47+
"outputs": [],
5948
"source": [
6049
"'''\n",
6150
" * Copyright (c) 2022, salesforce.com, inc.\n",

nbs/models.aligners.ipynb

+1-16
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,7 @@
221221
"cell_type": "code",
222222
"execution_count": null,
223223
"metadata": {},
224-
"outputs": [
225-
{
226-
"name": "stdout",
227-
"output_type": "stream",
228-
"text": [
229-
"Word: HE, Confidence: 1.00, Start:0.121, End: 0.242 sec\n",
230-
"Word: TRIED, Confidence: 0.91, Start:0.323, End: 0.625 sec\n",
231-
"Word: TO, Confidence: 1.00, Start:0.686, End: 0.787 sec\n",
232-
"Word: THINK, Confidence: 0.93, Start:0.948, End: 1.311 sec\n",
233-
"Word: HOW, Confidence: 0.91, Start:1.473, End: 1.675 sec\n",
234-
"Word: IT, Confidence: 0.71, Start:1.755, End: 1.836 sec\n",
235-
"Word: COULD, Confidence: 0.75, Start:1.917, End: 2.118 sec\n",
236-
"Word: BE, Confidence: 1.00, Start:2.239, End: 2.461 sec\n"
237-
]
238-
}
239-
],
224+
"outputs": [],
240225
"source": [
241226
"text_normalizer = TTSTextNormalizer().english_cleaners\n",
242227
"aligner = AlignerWAV2VEC2(text_normalizer, device='cpu') # for CI on cpu\n",

nbs/models.autoencoders.ipynb

+4-37
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@
4343
"cell_type": "code",
4444
"execution_count": null,
4545
"metadata": {},
46-
"outputs": [
47-
{
48-
"name": "stderr",
49-
"output_type": "stream",
50-
"text": [
51-
"/Users/syl20/mambaforge/envs/nimrod/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
52-
" from .autonotebook import tqdm as notebook_tqdm\n"
53-
]
54-
}
55-
],
46+
"outputs": [],
5647
"source": [
5748
"#| export\n",
5849
"import torch.nn.functional as F\n",
@@ -92,15 +83,7 @@
9283
"cell_type": "code",
9384
"execution_count": null,
9485
"metadata": {},
95-
"outputs": [
96-
{
97-
"name": "stdout",
98-
"output_type": "stream",
99-
"text": [
100-
"torch.Size([10, 784])\n"
101-
]
102-
}
103-
],
86+
"outputs": [],
10487
"source": [
10588
"enc = Encoder()\n",
10689
"dec = Decoder()\n",
@@ -114,15 +97,7 @@
11497
"cell_type": "code",
11598
"execution_count": null,
11699
"metadata": {},
117-
"outputs": [
118-
{
119-
"name": "stdout",
120-
"output_type": "stream",
121-
"text": [
122-
"2 torch.Size([1, 1, 28, 28]) torch.Size([1])\n"
123-
]
124-
}
125-
],
100+
"outputs": [],
126101
"source": [
127102
"ds = MNISTDataset(data_dir='../data/image/')\n",
128103
"dl = DataLoader(ds)\n",
@@ -209,15 +184,7 @@
209184
"cell_type": "code",
210185
"execution_count": null,
211186
"metadata": {},
212-
"outputs": [
213-
{
214-
"name": "stdout",
215-
"output_type": "stream",
216-
"text": [
217-
"torch.Size([5, 784])\n"
218-
]
219-
}
220-
],
187+
"outputs": [],
221188
"source": [
222189
"autoencoder_pl = AutoEncoderPL(a)\n",
223190
"b = torch.rand((5,28*28))\n",

nbs/models.conv.ipynb

+16-608
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)