summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-08 18:31:52 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-08 18:31:52 +0800
commitd380e04df37593e414bd5641db100613fb2ad882 (patch)
tree1e3b3ea55a464d59d790711372bbca42cb203d0a /config.py
parenta040400d7caa267d4bfbe8e5520568806f92b3d4 (diff)
parent99ddd7c142a4ec97cb8bd14b204651790b3cf4ee (diff)
Merge branch 'master' into python3.8
# Conflicts: # models/hpm.py # models/layers.py # models/model.py # models/rgb_part_net.py # utils/configuration.py
Diffstat (limited to 'config.py')
-rw-r--r--config.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/config.py b/config.py
index 991a3a6..04a22b9 100644
--- a/config.py
+++ b/config.py
@@ -8,6 +8,8 @@ config: Configuration = {
'CUDA_VISIBLE_DEVICES': '0',
# Directory used in training or testing for temporary storage
'save_dir': 'runs',
+ # Recorde disentangled image or not
+ 'image_log_on': False
},
# Dataset settings
'dataset': {
@@ -46,11 +48,13 @@ config: Configuration = {
'ae_feature_channels': 64,
# Appearance, canonical and pose feature dimensions
'f_a_c_p_dims': (128, 128, 64),
+ # Use 1x1 convolution in dimensionality reduction
+ 'hpm_use_1x1conv': False,
# HPM pyramid scales, of which sum is number of parts
'hpm_scales': (1, 2, 4),
# Global pooling method
'hpm_use_avg_pool': True,
- 'hpm_use_max_pool': True,
+ 'hpm_use_max_pool': False,
# FConv feature channels coefficient
'fpfe_feature_channels': 32,
# FConv blocks kernel sizes
@@ -65,11 +69,13 @@ config: Configuration = {
'tfa_num_parts': 16,
# Embedding dimension for each part
'embedding_dims': 256,
- # Triplet loss margin
- 'triplet_margin': 0.2,
+ # Triplet loss margins for HPM and PartNet
+ 'triplet_margins': (0.2, 0.2),
},
'optimizer': {
# Global parameters
+ # Iteration start to optimize non-disentangling parts
+ # 'start_iter': 0,
# Initial learning rate of Adam Optimizer
'lr': 1e-4,
# Coefficients used for computing running averages of