Hugo Flores Garcia commited on
Commit
dde5c21
1 Parent(s): 2257706
Files changed (2) hide show
  1. scripts/exp/train.py +1 -1
  2. vampnet/modules/base.py +2 -2
scripts/exp/train.py CHANGED
@@ -59,7 +59,7 @@ IGNORE_INDEX = -100
59
  @argbind.bind("train", "val", without_prefix=True)
60
  def build_transform():
61
  transform = transforms.Compose(
62
- tfm.VolumeNorm(("uniform", -32, -14)),
63
  tfm.VolumeChange(("uniform", -6, 3)),
64
  tfm.RescaleAudio(),
65
  )
 
59
  @argbind.bind("train", "val", without_prefix=True)
60
  def build_transform():
61
  transform = transforms.Compose(
62
+ tfm.VolumeNorm(("uniform", -32, -20)),
63
  tfm.VolumeChange(("uniform", -6, 3)),
64
  tfm.RescaleAudio(),
65
  )
vampnet/modules/base.py CHANGED
@@ -154,7 +154,7 @@ class VampBase(at.ml.BaseModel):
154
  start_tokens: Optional[torch.Tensor] = None,
155
  mask: Optional[torch.Tensor] = None,
156
  device: str = "cpu",
157
- temperature: Union[float, Tuple[float, float]] = 1.0,
158
  top_k: int = None,
159
  sample: str = "gumbel",
160
  renoise_mode: str = "start",
@@ -267,7 +267,7 @@ class VampBase(at.ml.BaseModel):
267
  sampling_steps: int = 24,
268
  start_tokens: Optional[torch.Tensor] = None,
269
  mask: Optional[torch.Tensor] = None,
270
- temperature: Union[float, Tuple[float, float]] = 1.0,
271
  top_k: int = None,
272
  sample: str = "multinomial",
273
  typical_filtering=False,
 
154
  start_tokens: Optional[torch.Tensor] = None,
155
  mask: Optional[torch.Tensor] = None,
156
  device: str = "cpu",
157
+ temperature: Union[float, Tuple[float, float]] = 0.8,
158
  top_k: int = None,
159
  sample: str = "gumbel",
160
  renoise_mode: str = "start",
 
267
  sampling_steps: int = 24,
268
  start_tokens: Optional[torch.Tensor] = None,
269
  mask: Optional[torch.Tensor] = None,
270
+ temperature: Union[float, Tuple[float, float]] = 0.8,
271
  top_k: int = None,
272
  sample: str = "multinomial",
273
  typical_filtering=False,