-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain_resnet18.sh
More file actions
executable file
·42 lines (37 loc) · 1.22 KB
/
Copy pathtrain_resnet18.sh
File metadata and controls
executable file
·42 lines (37 loc) · 1.22 KB
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
35
36
37
38
39
40
41
export OMP_NUM_THREADS=2
# accuracy=41 on 50th epoch
# /home/beomsik/miniconda3/envs/dp-imagenet-opacus/bin/python imagenet/imagenet_train.py \
# --data_dir imagenet/imagenet-data \
# --train_device_batch_size=256 \
# --eval_device_batch_size=1024 \
# --eval_every_n_steps=1024 \
# --model=resnet18 \
# --num_train_epochs=70 \
# --dp_clip_norm=1.0 \
# --dp_sigma=0.058014 \
# --grad_acc_steps=64 \
# --base_learning_rate=0.03 \
# --lr_warmup_epochs=1 \
# --num_layers_to_freeze=7 \
# --finetune_path="pretrained_models/places365_resnet18_20220314.npz" \
# --multiprocessing_distributed \
# --print_freq 64
# 41.630
taskset -c 40-79 /home/beomsik/miniconda3/envs/dp-imagenet-opacus/bin/python imagenet/imagenet_train.py \
--data_dir imagenet/imagenet-data \
--train_device_batch_size=128 \
--eval_device_batch_size=1024 \
--eval_every_n_steps=1024 \
--model=resnet18 \
--num_train_epochs=70 \
--dp_clip_norm=1.0 \
--dp_delta=8e-7 \
--grad_acc_steps=128 \
--base_learning_rate=0.03 \
--lr_warmup_epochs=1 \
--num_layers_to_freeze=7 \
--finetune_path="pretrained_models/places365_resnet18_20220314.npz" \
--multiprocessing_distributed \
--print_freq 10000 \
--rnd_seed 4 \
--port 12316