teticio commited on
Commit
6456a7f
1 Parent(s): 29c19d2

update hack

Browse files
audiodiffusion/__init__.py CHANGED
@@ -7,7 +7,7 @@ from tqdm.auto import tqdm
7
  from librosa.beat import beat_track
8
  #from diffusers import DiffusionPipeline
9
 
10
- VERSION = "1.3.0"
11
 
12
 
13
  class AudioDiffusion:
@@ -589,10 +589,17 @@ class AudioDiffusionPipeline(DiffusionPipeline):
589
  return sin((1 - alpha) * theta) * x0 / sin(theta) + sin(alpha * theta) * x1 / sin(theta)
590
 
591
 
 
592
  import diffusers
593
 
594
- diffusers.Mel = Mel
595
- setattr(diffusers, Mel.__name__, Mel)
 
 
 
 
 
596
  diffusers.AudioDiffusionPipeline = AudioDiffusionPipeline
597
  setattr(diffusers, AudioDiffusionPipeline.__name__, AudioDiffusionPipeline)
598
- diffusers.pipeline_utils.LOADABLE_CLASSES['diffusers']['Mel'] = ["save_pretrained", "from_pretrained"]
 
 
7
  from librosa.beat import beat_track
8
  #from diffusers import DiffusionPipeline
9
 
10
+ VERSION = "1.3.1"
11
 
12
 
13
  class AudioDiffusion:
 
589
  return sin((1 - alpha) * theta) * x0 / sin(theta) + sin(alpha * theta) * x1 / sin(theta)
590
 
591
 
592
+ import sys
593
  import diffusers
594
 
595
+ class audio_diffusion():
596
+ __name__ = 'audio_diffusion'
597
+ pass
598
+
599
+
600
+ sys.modules['audio_diffusion'] = audio_diffusion
601
+ setattr(audio_diffusion, Mel.__name__, Mel)
602
  diffusers.AudioDiffusionPipeline = AudioDiffusionPipeline
603
  setattr(diffusers, AudioDiffusionPipeline.__name__, AudioDiffusionPipeline)
604
+ diffusers.pipeline_utils.LOADABLE_CLASSES['audio_diffusion'] = {}
605
+ diffusers.pipeline_utils.LOADABLE_CLASSES['audio_diffusion']['Mel'] = ["save_pretrained", "from_pretrained"]
notebooks/test_model.ipynb CHANGED
@@ -37,12 +37,6 @@
37
  "sys.path.insert(0, os.path.dirname(os.path.abspath(\"\")))"
38
  ]
39
  },
40
- {
41
- "cell_type": "markdown",
42
- "id": "85d806d7",
43
- "metadata": {},
44
- "source": []
45
- },
46
  {
47
  "cell_type": "code",
48
  "execution_count": null,
 
37
  "sys.path.insert(0, os.path.dirname(os.path.abspath(\"\")))"
38
  ]
39
  },
 
 
 
 
 
 
40
  {
41
  "cell_type": "code",
42
  "execution_count": null,