mattricesound commited on
Commit
6f2c823
1 Parent(s): 0bbc6f3

Add notebooks

Browse files
Files changed (3) hide show
  1. Experiments.ipynb +0 -122
  2. README.md +1 -1
  3. diffusion_test.ipynb +0 -0
Experiments.ipynb CHANGED
@@ -163,41 +163,6 @@
163
  "print(x.shape)"
164
  ]
165
  },
166
- {
167
- "cell_type": "code",
168
- "execution_count": 22,
169
- "id": "f031f044",
170
- "metadata": {},
171
- "outputs": [],
172
- "source": [
173
- "class RemFXDataModule(pl.LightningDataModule):\n",
174
- " def __init__(self, data_dir: str = \"path/to/dir\", batch_size: int = 32):\n",
175
- " super().__init__()\n",
176
- " self.data_dir = Path(data_dir)\n",
177
- " self.batch_size = batch_size\n",
178
- "\n",
179
- " def setup(self, stage: str):\n",
180
- "# self.guitar_test = GuitarDataset(self.data_dir, train=False)\n",
181
- "# self.guitar_predict = GuitarDataset(self.data_dir, train=False)\n",
182
- " guitar_full = GuitarDataset(self.data_dir)\n",
183
- " self.guitar_train, self.guitar_val = random_split(guitar_full, [55000, 5000])\n",
184
- "\n",
185
- " def train_dataloader(self):\n",
186
- " return DataLoader(self.guitar_train, batch_size=self.batch_size)\n",
187
- "\n",
188
- " def val_dataloader(self):\n",
189
- " return DataLoader(self.guitar_val, batch_size=self.batch_size)\n",
190
- "\n",
191
- "# def test_dataloader(self):\n",
192
- "# return DataLoader(self.guitar_test, batch_size=self.batch_size)\n",
193
- "\n",
194
- "# def predict_dataloader(self):\n",
195
- "# return DataLoader(self.guitar_predict, batch_size=self.batch_size)\n",
196
- "\n",
197
- " def teardown(self, stage: str):\n",
198
- " pass"
199
- ]
200
- },
201
  {
202
  "cell_type": "code",
203
  "execution_count": 23,
@@ -380,93 +345,6 @@
380
  "source": [
381
  "Audio(z, rate=22050)"
382
  ]
383
- },
384
- {
385
- "cell_type": "code",
386
- "execution_count": 258,
387
- "id": "907c7dfb",
388
- "metadata": {},
389
- "outputs": [
390
- {
391
- "name": "stdout",
392
- "output_type": "stream",
393
- "text": [
394
- "tensor(0.6213, grad_fn=<MseLossBackward0>)\n"
395
- ]
396
- }
397
- ],
398
- "source": []
399
- },
400
- {
401
- "cell_type": "code",
402
- "execution_count": 164,
403
- "id": "698bc12e",
404
- "metadata": {},
405
- "outputs": [
406
- {
407
- "data": {
408
- "text/plain": [
409
- "6890.625"
410
- ]
411
- },
412
- "execution_count": 164,
413
- "metadata": {},
414
- "output_type": "execute_result"
415
- }
416
- ],
417
- "source": [
418
- "110250 / 16"
419
- ]
420
- },
421
- {
422
- "cell_type": "code",
423
- "execution_count": 165,
424
- "id": "d4d8bb49",
425
- "metadata": {},
426
- "outputs": [
427
- {
428
- "data": {
429
- "text/plain": [
430
- "264600"
431
- ]
432
- },
433
- "execution_count": 165,
434
- "metadata": {},
435
- "output_type": "execute_result"
436
- }
437
- ],
438
- "source": [
439
- "12 * 22050"
440
- ]
441
- },
442
- {
443
- "cell_type": "code",
444
- "execution_count": 166,
445
- "id": "ecda7e0e",
446
- "metadata": {},
447
- "outputs": [
448
- {
449
- "data": {
450
- "text/plain": [
451
- "16537.5"
452
- ]
453
- },
454
- "execution_count": 166,
455
- "metadata": {},
456
- "output_type": "execute_result"
457
- }
458
- ],
459
- "source": [
460
- "264600 / 16"
461
- ]
462
- },
463
- {
464
- "cell_type": "code",
465
- "execution_count": null,
466
- "id": "a9980287",
467
- "metadata": {},
468
- "outputs": [],
469
- "source": []
470
  }
471
  ],
472
  "metadata": {
 
163
  "print(x.shape)"
164
  ]
165
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  {
167
  "cell_type": "code",
168
  "execution_count": 23,
 
345
  "source": [
346
  "Audio(z, rate=22050)"
347
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  }
349
  ],
350
  "metadata": {
README.md CHANGED
@@ -1 +1 @@
1
- Test
 
1
+
diffusion_test.ipynb ADDED
The diff for this file is too large to render. See raw diff