Skip to content

Commit

Permalink
modify code architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketFlash committed Dec 13, 2019
1 parent 184e677 commit 82ab143
Show file tree
Hide file tree
Showing 23 changed files with 272 additions and 503 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,4 @@ weights/
plots/
sub.csv
core
work_dirs/
50 changes: 37 additions & 13 deletions configs/plates.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
input_shape : [128, 128, 3]
encodings_len: 256
margin: 0.5
encodings_len: 512
margin: 0.4
mode : 'triplet'
distance_type : 'l1'
backbone : 'resnext50'
distance_type : 'l2'
backbone : 'resnet18'
backbone_weights : 'imagenet'
optimizer : 'radam'
learning_rate : 0.0001
project_name : 'plates/'
freeze_backbone : True
augmentation_type : 'default'
augmentation_type : None
embeddings_normalization: True

#paths
# optimizer parameters
optimizer : 'radam'
learning_rate : 0.0001
decay_factor : 0.99
step_size : 10

# embeddings learning training parameters
n_epochs : 1000
n_steps_per_epoch : 10
val_batch_size : 8
val_steps : 10
negatives_selection_mode : 'semihard'
mining_n_classes: 2
mining_n_samples: 3

# softmax pretraining parameters
softmax_pretraining : True
softmax_batch_size : 8
softmax_val_steps : 2
softmax_steps_per_epoch : 2
softmax_epochs : 1000

# paths
work_dir : 'work_dirs/plates/'
dataset_path : '/home/rauf/plates_competition/dataset/to_train/'
tensorboard_log_path : 'tf_log/'
weights_save_path : 'weights/'
plots_path : 'plots/'
encodings_path : 'encodings/'
model_save_name : 'best_model_simple2_plates.h5'
plot_history : True
model_save_name : 'best_model_resnet18_plates.h5'
encodings_save_name: 'encodings_resnet18_plates.pkl'

# encodings parameters
save_encodings : True
max_num_samples_of_each_class : 30
knn_k : 1
19 changes: 0 additions & 19 deletions configs/road_signs.yml

This file was deleted.

19 changes: 0 additions & 19 deletions configs/road_signs_mobilenetv2.yml

This file was deleted.

30 changes: 26 additions & 4 deletions configs/road_signs_resnet18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,38 @@ mode : 'triplet'
distance_type : 'l1'
backbone : 'resnet18'
backbone_weights : 'imagenet'
optimizer : 'radam'
learning_rate : 0.0001
project_name : 'road_signs/'
freeze_backbone : True
freeze_backbone : False
augmentation_type : 'default'
embeddings_normalization: True

# optimizer parameters
optimizer : 'radam'
learning_rate : 0.0001
decay_factor : 0.99
step_size : 1

# embeddings learning training parameters
n_epochs : 1000
n_steps_per_epoch : 200
val_batch_size : 8
val_steps : 200
negatives_selection_mode : 'semihard'
mining_n_classes: 5
mining_n_samples: 3

# softmax pretraining parameters
softmax_pretraining : True
softmax_batch_size : 8
softmax_val_steps : 200
softmax_steps_per_epoch : 500
softmax_epochs : 20

#paths
dataset_path : '/home/rauf/datasets/road_signs/road_signs_separated/'
tensorboard_log_path : 'tf_log/'
weights_save_path : 'weights/'
plots_path : 'plots/'
encodings_path : 'encodings/'
model_save_name : 'best_model_resnet18.h5'
model_save_name : 'best_model_resnet18.h5'
encodings_save_name: 'encodings_resnet18.pkl'
20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_all.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_max80_min30.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_merged_dataset.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_mini.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_paper.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_paper_cutted.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnet18_paper_remaining.yml

This file was deleted.

19 changes: 0 additions & 19 deletions configs/road_signs_resnet50v2.yml

This file was deleted.

19 changes: 0 additions & 19 deletions configs/road_signs_resnet50v2_merged_dataset.yml

This file was deleted.

19 changes: 0 additions & 19 deletions configs/road_signs_resnext50.yml

This file was deleted.

20 changes: 0 additions & 20 deletions configs/road_signs_resnext50_merged_dataset.yml

This file was deleted.

Loading

0 comments on commit 82ab143

Please sign in to comment.