This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Ability to train vq-vae and prior | |
First try for random inputs | |
Then from maestros | |
""" | |
import sys | |
import fire | |
import warnings | |
import numpy as np | |
import torch as t |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import torch as t | |
import jukebox.utils.dist_adapter as dist | |
from jukebox.hparams import Hyperparams | |
from jukebox.data.labels import EmptyLabeller | |
from jukebox.utils.torch_utils import empty_cache | |
from jukebox.utils.audio_utils import save_wav, load_audio | |
from jukebox.make_models import make_model | |
from jukebox.align import get_alignment |