classification_retrain_spec.cfg 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. model_config {
  2. arch: "resnet",
  3. n_layers: 18
  4. use_batch_norm: true
  5. all_projections: true
  6. input_image_size: "3,224,224"
  7. }
  8. train_config {
  9. train_dataset_path: "/workspace/tlt-experiments/data/split/train"
  10. val_dataset_path: "/workspace/tlt-experiments/data/split/val"
  11. pretrained_model_path: "/workspace/tlt-experiments/classification/output/resnet_pruned/resnet18_nopool_bn_pruned.tlt"
  12. optimizer {
  13. sgd {
  14. lr: 0.01
  15. decay: 0.0
  16. momentum: 0.9
  17. nesterov: False
  18. }
  19. }
  20. batch_size_per_gpu: 64
  21. n_epochs: 80
  22. n_workers: 16
  23. preprocess_mode: "caffe"
  24. enable_random_crop: True
  25. enable_center_crop: True
  26. label_smoothing: 0.0
  27. mixup_alpha: 0.1
  28. # regularizer
  29. reg_config {
  30. type: "L2"
  31. scope: "Conv2D,Dense"
  32. weight_decay: 0.00005
  33. }
  34. # learning_rate
  35. lr_config {
  36. step {
  37. learning_rate: 0.006
  38. step_size: 10
  39. gamma: 0.1
  40. }
  41. }
  42. }
  43. eval_config {
  44. eval_dataset_path: "/workspace/tlt-experiments/data/split/test"
  45. model_path: "/workspace/tlt-experiments/classification/output_retrain/weights/resnet_080.tlt"
  46. top_k: 3
  47. batch_size: 256
  48. n_workers: 8
  49. enable_center_crop: True
  50. }