-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
28 lines (25 loc) · 888 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
"""General training parameters that define the maximum number of
training epochs, the batch size, and learning rate for the ADAM
optimization method. To reproduce the results from the paper,
these values should not be changed. The device can be either
"cpu" or "gpu", which then optimizes the model accordingly after
training or uses the correct version for inference when testing.
"""
PARAMS = {
"n_epochs": 5,
"batch_size": 1,
"n_training_steps": 10000,
"learning_rate": 1e-5,
"learning_power": 0.5,
"momentum": 0.9,
"device": "gpu"
}
"""The predefined input image sizes for the search and target images.
To reproduce the results from the paper, these values should
not be changed. They must be divisible by 8 due to the model's
downsampling operations.
"""
DIMS = {
"image_size_cocosearch": (320, 512),
"image_target_size_cocosearch": (64, 64)
}