Spaces:
Runtime error
Runtime error
Commit
·
6a2947b
1
Parent(s):
ace4057
Clean chain-inference
Browse files- remfx/callbacks.py +0 -3
- scripts/chain_inference.py +1 -1
remfx/callbacks.py
CHANGED
|
@@ -64,9 +64,6 @@ class AudioCallback(Callback):
|
|
| 64 |
]
|
| 65 |
for i, label in enumerate(effects_present_name):
|
| 66 |
self.log(f"{'_'.join(label)}", 0.0)
|
| 67 |
-
# self.log(f"{effects}_{i}", label)
|
| 68 |
-
# trainer.logger.experiment.log(
|
| 69 |
-
# {f"effects_{i}": f"{'_'.join(label)}"}
|
| 70 |
else:
|
| 71 |
y = pl_module.model.sample(x)
|
| 72 |
# Concat samples together for easier viewing in dashboard
|
|
|
|
| 64 |
]
|
| 65 |
for i, label in enumerate(effects_present_name):
|
| 66 |
self.log(f"{'_'.join(label)}", 0.0)
|
|
|
|
|
|
|
|
|
|
| 67 |
else:
|
| 68 |
y = pl_module.model.sample(x)
|
| 69 |
# Concat samples together for easier viewing in dashboard
|
scripts/chain_inference.py
CHANGED
|
@@ -15,7 +15,7 @@ def main(cfg: DictConfig):
|
|
| 15 |
pl.seed_everything(cfg.seed)
|
| 16 |
log.info(f"Instantiating datamodule <{cfg.datamodule._target_}>.")
|
| 17 |
datamodule = hydra.utils.instantiate(cfg.datamodule, _convert_="partial")
|
| 18 |
-
log.info(
|
| 19 |
models = {}
|
| 20 |
for effect in cfg.ckpts:
|
| 21 |
model = hydra.utils.instantiate(cfg.ckpts[effect].model, _convert_="partial")
|
|
|
|
| 15 |
pl.seed_everything(cfg.seed)
|
| 16 |
log.info(f"Instantiating datamodule <{cfg.datamodule._target_}>.")
|
| 17 |
datamodule = hydra.utils.instantiate(cfg.datamodule, _convert_="partial")
|
| 18 |
+
log.info("Instantiating Chain Inference Models")
|
| 19 |
models = {}
|
| 20 |
for effect in cfg.ckpts:
|
| 21 |
model = hydra.utils.instantiate(cfg.ckpts[effect].model, _convert_="partial")
|