-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinference_commands_tpami2024.sh
executable file
·180 lines (150 loc) · 5.28 KB
/
inference_commands_tpami2024.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
##########################
# ffhq, resolution 256x256
##########################
# sample 20 patches from top 200 tokens in one iteration, only one image is generated
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_ffhq_res256/checkpoint/last.pth \
--input_res 256,256 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/ffhq_256_sample/gt \
--mask_dir data/ffhq_256_sample/mr0.5_0.6 \
--gpu 0
# sample all patches from top 1 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_ffhq_res256/checkpoint/last.pth \
--input_res 256,256 \
--num_token_per_iter -1 \
--num_token_for_sampling 1 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/ffhq_256_sample/gt \
--mask_dir data/ffhq_256_sample/mr0.5_0.6 \
--gpu 0
##########################
# ffhq, resolution 512x512
##########################
# sample 20 patches from top 200 tokens in one iteration, only one image is generated
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_ffhq_res512/checkpoint/last.pth \
--input_res 512,512 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/ffhq_512_sample/gt \
--mask_dir data/ffhq_512_sample/mr0.5_0.6 \
--gpu 0
# sample all patchs from top 1 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_ffhq_res512/checkpoint/last.pth \
--input_res 512,512 \
--num_token_per_iter -1 \
--num_token_for_sampling 1 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/ffhq_512_sample/gt \
--mask_dir data/ffhq_512_sample/mr0.5_0.6 \
--gpu 0
########################
# naturalscene, 256x256
########################
# sample 20 patches from top 200 tokens in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_naturalscene_res256/checkpoint/000599e_742800iter.pth \
--input_res 256,256 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/naturalscene_256_sample/gt \
--mask_dir data/naturalscene_256_sample/mr0.5_0.6 \
--gpu 0
# sample all patches from top 200 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_naturalscene_res256/checkpoint/000599e_742800iter.pth \
--input_res 256,256 \
--num_token_per_iter -1 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/naturalscene_256_sample/gt \
--mask_dir data/naturalscene_256_sample/mr0.5_0.6 \
--gpu 0
########################
# naturalscene, 512x512
########################
# sample 20 patches from top 200 tokens in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_naturalscene_res512/checkpoint/000599e_742800iter.pth \
--input_res 512,512 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/naturalscene_512_sample/gt \
--mask_dir data/naturalscene_512_sample/mr0.5_0.6 \
--gpu 0
# sample all patches from top 200 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_naturalscene_res512/checkpoint/000599e_742800iter.pth \
--input_res 512,512 \
--num_token_per_iter -1 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/naturalscene_512_sample/gt \
--mask_dir data/naturalscene_512_sample/mr0.5_0.6 \
--gpu 0
########################
# imagenet, 256x256
########################
# sample 20 patches from top 200 tokens in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_imagenet_res256/checkpoint/000299e_1000799iter.pth \
--input_res 256,256 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/imagenet_256_sample/gt \
--mask_dir data/imagenet_256_sample/mr0.5_0.6 \
--gpu 0
# sample all patches from top 1 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_imagenet_res256/checkpoint/000299e_1000799iter.pth \
--input_res 256,256 \
--num_token_per_iter -1 \
--num_token_for_sampling 1 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/imagenet_256_sample/gt \
--mask_dir data/imagenet_256_sample/mr0.5_0.6 \
--gpu 0
########################
# imagenet, 512x512
########################
# sample 20 patches from top 200 tokens in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_imagenet_res512/checkpoint/last.pth \
--input_res 512,512 \
--num_token_per_iter 20 \
--num_token_for_sampling 200 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/imagenet_512_sample/gt \
--mask_dir data/imagenet_512_sample/mr0.5_0.6 \
--gpu 0
# sample all patches from top 1 token in one iteration
python scripts/inference.py --func inference_inpainting \
--name OUTPUT/tpami2024_vit_base_imagenet_res512/checkpoint/last.pth \
--input_res 512,512 \
--num_token_per_iter -1 \
--num_token_for_sampling 1 \
--num_sample 1 \
--num_replicate 1 \
--image_dir data/imagenet_512_sample/gt \
--mask_dir data/imagenet_512_sample/mr0.5_0.6 \
--gpu 0