AudioLDM
AudioLDM copied to clipboard
Colab notebook broken
During setup
/root/.cache/audiol 100%[===================>] 2.38G 119MB/s in 28s
2023-05-30 22:18:20 (85.6 MB/s) - ‘/root/.cache/audioldm/audioldm-full-s-v2.ckpt’ saved [2559017383/2559017383]
---------------------------------------------------------------------------
SameFileError Traceback (most recent call last)
[<ipython-input-1-37733fc54a37>](https://localhost:8080/#) in <cell line: 200>()
219 op(c.warn, 'Downloading', use_ckpt)
220 get_ipython().system('wget {ckpt_url} -O {models_dir}{use_ckpt}')
--> 221 shutil.copy(models_dir+use_ckpt, use_ckpt_path+use_ckpt)
222 op(c.ok, 'Done.')
223
1 frames
[/usr/lib/python3.10/shutil.py](https://localhost:8080/#) in copy(src, dst, follow_symlinks)
415 if os.path.isdir(dst):
416 dst = os.path.join(dst, os.path.basename(src))
--> 417 copyfile(src, dst, follow_symlinks=follow_symlinks)
418 copymode(src, dst, follow_symlinks=follow_symlinks)
419 return dst
[/usr/lib/python3.10/shutil.py](https://localhost:8080/#) in copyfile(src, dst, follow_symlinks)
232
233 if _samefile(src, dst):
--> 234 raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
235
236 file_size = 0
SameFileError: '/root/.cache/audioldm/audioldm-full-s-v2.ckpt' and '/root/.cache/audioldm/audioldm-full-s-v2.ckpt' are the same file
And when I try to generate something...
NameError Traceback (most recent call last)
[<ipython-input-4-27fede310783>](https://localhost:8080/#) in <cell line: 77>()
144 else:
145 file_out = fo_head+slug(prompt)[:trunc]+'.wav'
--> 146 generated_audio = text2audio(prompt, duration, None, guidance_scale, seed, candidates, ddim_steps)
147 elif action == 'audio2audio':
148 file_out = fo_head+basename(init_path)+'.wav'
NameError: name 'text2audio' is not defined
Fixed, please refresh notebook and try again.
I've been doing a lot of changes to the notebook in the past days, particularly concerning audio quality enhancements (it now produces relatively decent sounding 44.1 kHz stereo with restored high-end). Don't hesitate to raise issues in the notebook's repository in case of issues. I'll try my best to monitor notebook issues here too, tho.
https://github.com/haoheliu/AudioLDM/assets/50331907/5ecdd632-34e2-4f13-9681-2f8e3aa28777
Fixed, please refresh notebook and try again.
Many thanks for the help! @olaviinha