training_config.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "trainer_name": "wakeword_trainer",
  3. "model_name": "wakeword_500ep",
  4. "output_dir": "./models/wakeword",
  5. "data_dir": "./trainer/data/wakeword",
  6. "config_dir": "./config",
  7. "batch_size": 32,
  8. "learning_rate": 0.001,
  9. "num_epochs": 500,
  10. "min_epochs": 50,
  11. "max_epochs": 1000,
  12. "early_stopping_patience": 15,
  13. "model_format": ".pth",
  14. "use_mixed_precision": true,
  15. "gradient_clip_norm": 1.0,
  16. "weight_decay": 0.0001,
  17. "validation_split": 0.2,
  18. "test_split": 0.1,
  19. "shuffle_data": true,
  20. "num_workers": 4,
  21. "pin_memory": true,
  22. "sample_rate": 16000,
  23. "bit_depth": 16,
  24. "audio_length": 1.5,
  25. "n_mels": 40,
  26. "n_fft": 512,
  27. "hop_length": 160,
  28. "win_length": 400,
  29. "use_augmentation": false,
  30. "noise_factor": 0.1,
  31. "speed_factor": 0.1,
  32. "pitch_factor": 0.05,
  33. "volume_factor": 0.2,
  34. "use_password_protection": true,
  35. "password": null,
  36. "encryption_algorithm": "AES256",
  37. "log_level": "INFO",
  38. "save_checkpoints": true,
  39. "checkpoint_interval": 10,
  40. "validate_interval": 1,
  41. "log_interval": 100,
  42. "device": "cuda",
  43. "use_distributed": false,
  44. "num_gpus": 1,
  45. "resume_from_checkpoint": false,
  46. "checkpoint_path": null,
  47. "freeze_backbone": false,
  48. "use_scheduler": true,
  49. "scheduler_type": "cosine",
  50. "custom_params": {
  51. "model_type": "standard",
  52. "wakeword_classes": {
  53. "0": "custom",
  54. "1": "system_command",
  55. "2": "negative"
  56. },
  57. "detection_threshold": 0.5,
  58. "use_focal_loss": true,
  59. "focal_alpha": 1.0,
  60. "focal_gamma": 2.0,
  61. "width_multiplier": 1.0,
  62. "use_se": false,
  63. "dropout_rate": 0.2
  64. }
  65. }