Skip to content

Commit 00597b1

Browse files
committed
reverted sigma scaling w.r.t. scale factor in JointsDataset.py
1 parent 535ac7c commit 00597b1

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

experiments/mpii/fastvit/w32_256x256_adam_lr1e-3_Unreal.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ PRINT_FREQ: 100
1212

1313
DATASET:
1414
COLOR_RGB: false
15-
DATASET: unrealS
15+
DATASET: unreal
1616
DATA_FORMAT: png
1717
FLIP: true
1818
NUM_JOINTS_HALF_BODY: 8
1919
PROB_HALF_BODY: -1.0
20-
ROOT: '/data/local/HL/HRNet_data/240604-1007_target_unreal/dSigma_1.0_sigma_2.0_thresh_2.0/'
20+
ROOT: '/data/local/HL/HRNet_data/240604-1007_black_bright_unreal/'
2121
ROT_FACTOR: 45
22-
SCALE_FACTOR: 1.5
22+
SCALE_FACTOR: 3.5
2323
SHIFT_FACTOR: 0.5
2424
TEST_SET: valid
2525
TRAIN_SET: train
2626
MODEL:
2727
INIT_WEIGHTS: true
2828
NAME: pose_fastvit
2929
NUM_JOINTS: 16
30-
PRETRAINED: 'output/unrealS/pose_fastvit/unreal_pretrained_model_best.pth'
30+
PRETRAINED: 'output/unreal/pose_fastvit/unreal_pretrained_model_best.pth'
3131
TARGET_TYPE: gaussian
3232
IMAGE_SIZE:
3333
- 256
@@ -46,19 +46,19 @@ TRAIN:
4646
BEGIN_EPOCH: 0
4747
END_EPOCH: 500
4848
OPTIMIZER: adamw
49-
LR: 0.005
49+
LR: 0.0005
5050
LR_FACTOR: 0.5
5151
LR_STEP:
52-
- 150
53-
- 300
52+
- 170
53+
- 210
5454
WD: 0.0005
5555
GAMMA1: 0.99
5656
GAMMA2: 0.0
5757
MOMENTUM: 0.9
5858
NESTEROV: false
5959
TEST:
6060
BATCH_SIZE_PER_GPU: 32
61-
MODEL_FILE: 'output/unrealS/pose_fastvit/unreal_pretrained_model_best.pth'
61+
MODEL_FILE: 'output/unreal/pose_fastvit/unreal_pretrained_model_best.pth'
6262
FLIP_TEST: true
6363
POST_PROCESS: true
6464
SHIFT_HEATMAP: true

lib/dataset/JointsDataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ def generate_target(self, joints, joints_vis, sc = 1.0):
251251
# target_weight[:, 0] = np.maximum(joints_vis[:, 0], 0.4)
252252

253253
# [24.10.28] GT variance ~ scale factor
254-
sigma_ = self.sigma / sc
254+
# sigma_ = self.sigma / sc
255+
sigma_ = self.sigma
255256

256257
assert self.target_type == 'gaussian', \
257258
'Only support gaussian map now!'

0 commit comments

Comments
 (0)