-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
34 lines (26 loc) · 826 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
class VGG16:
input_size = (224, 224, 3)
feature_layer = 'block5_conv2'
class Config(object):
vgg16 = VGG16
# data
resize = True
default_size = (600, 600, 3)
dataset_path = os.path.abspath(os.path.join(os.path.realpath('.'), os.pardir, 'dataset'))
dataset_allowed_folders = ['personal']
batch_size = 32 # sorry, not enough local vram
# hyper-parameters
kmax = 10
k = 5
top_n_classes_weights = [0.05, 0.15, 0.8]
cut_off_percentile = 20
# TSNE
tsne_perplexity = 30
tsne_iter = 5000
tsne_output_dir = os.path.abspath(os.path.join(os.path.realpath('.'), 'tsne'))
grid_size = 30
# plot
do_plotting = True
gradients_plot_path = os.path.abspath(os.path.join(os.path.realpath('.'), 'results'))
max_per_row_image_plot = 5