Skip to content

Commit

Permalink
hparam tweaks for final output
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Bryan committed Nov 26, 2024
1 parent bffcf38 commit 7a94545
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion magenta/models/coconet/coconet_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

flags.DEFINE_float('corrupt_ratio', 0.5, 'Fraction of variables to mask out.')
# Run parameters.
flags.DEFINE_integer('num_epochs', 50,
flags.DEFINE_integer('num_epochs', 100,
'The number of epochs to train the model. Default '
'is 0, which means to run until terminated '
'manually.')
Expand Down
4 changes: 2 additions & 2 deletions magenta/models/coconet/lib_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def build(self):
logits=self.logits, labels=self.pianorolls)

self.compute_loss(
self.cpep_calculator.calculate_voice_range_penalty(self.predictions) +
self.cpep_calculator.calculate_kernel_penalty(self.predictions) +
self.cpep_calculator.calculate_voice_range_penalty(self.predictions) +
self.cpep_calculator.calculate_kernel_penalty(self.predictions) +
self.cpep_calculator.calculate_parallel_perfect_penalty(self.predictions) +
self.cross_entropy)
self.setup_optimizer()
Expand Down
2 changes: 1 addition & 1 deletion magenta/models/coconet/sample_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ generation_output_dir=$HOME/samples

# Generation parameters.
# Number of samples to generate in a batch.
gen_batch_size=10
gen_batch_size=20
piece_length=64
strategy=igibbs
tfsample=true
Expand Down
2 changes: 1 addition & 1 deletion magenta/models/coconet/train_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data_dir=$HOME/JSB-Chorales-dataset/
dataset=Jsb16thSeparated

# Data preprocessing.
crop_piece_len=48
crop_piece_len=64
separate_instruments=True
quantization_level=0.125 # 16th notes

Expand Down

0 comments on commit 7a94545

Please sign in to comment.