Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions my_model.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
augmentation_batch_size: 16
augmentation_rounds: 1
background_paths:
- ./audioset_16k
- ./koda_audio
#- ./fma
background_paths_duplication_rate:
- 1
batch_n_per_class:
ACAV100M_sample: 1024
adversarial_negative: 400
positive: 400
custom_negative_phrases: []
false_positive_validation_data_path: validation_set_features.npy
feature_data_files:
ACAV100M_sample: openwakeword_features_ACAV100M_2000_hrs_16bit.npy
layer_size: 128
max_negative_weight: 1500
model_name: koda_stop
model_type: dnn
n_samples: 100000
n_samples_val: 2000
output_dir: ./koda_stop_24
piper_sample_generator_path: ./piper-sample-generator
rir_paths:
- ./mit_rirs
steps: 25000
target_false_positives_per_hour: 2
target_phrase:
- koda stop
tts_batch_size: 50
include_adversarial_examples: true
2 changes: 1 addition & 1 deletion openwakeword/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def __iter__(self):
else:
n_cpus = n_cpus//2
X_train = torch.utils.data.DataLoader(IterDataset(batch_generator),
batch_size=None, num_workers=n_cpus, prefetch_factor=16)
batch_size=None)

X_val_fp = np.load(config["false_positive_validation_data_path"])
X_val_fp = np.array([X_val_fp[i:i+input_shape[0]] for i in range(0, X_val_fp.shape[0]-input_shape[0], 1)]) # reshape to match model
Expand Down