@@ -66,6 +66,7 @@ struct SDParams {
66
66
// models
67
67
std::string model_path;
68
68
std::string clip_l_path;
69
+ std::string clip_g_path;
69
70
std::string t5xxl_path;
70
71
std::string diffusion_model_path;
71
72
std::string vae_path;
@@ -116,6 +117,7 @@ void print_params(SDParams params) {
116
117
printf (" model_path: %s\n " , params.model_path .c_str ());
117
118
printf (" wtype: %s\n " , params.wtype < SD_TYPE_COUNT ? sd_type_name (params.wtype ) : " unspecified" );
118
119
printf (" clip_l_path: %s\n " , params.clip_l_path .c_str ());
120
+ printf (" clip_g_path: %s\n " , params.clip_g_path .c_str ());
119
121
printf (" t5xxl_path: %s\n " , params.t5xxl_path .c_str ());
120
122
printf (" diffusion_model_path: %s\n " , params.diffusion_model_path .c_str ());
121
123
printf (" vae_path: %s\n " , params.vae_path .c_str ());
@@ -156,6 +158,7 @@ void print_usage(int argc, const char* argv[]) {
156
158
printf (" -m, --model [MODEL] path to full model\n " );
157
159
printf (" --diffusion-model path to the standalone diffusion model\n " );
158
160
printf (" --clip_l path to the clip-l text encoder\n " );
161
+ printf (" --clip_g path to the clip-g text encoder\n " );
159
162
printf (" --t5xxl path to the the t5xxl text encoder.\n " );
160
163
printf (" --vae [VAE] path to vae\n " );
161
164
printf (" --embd-dir [EMBEDDING_PATH] path to embeddings.\n " );
@@ -214,6 +217,12 @@ void parse_args(int argc, const char** argv, SDParams& params) {
214
217
break ;
215
218
}
216
219
params.clip_l_path = argv[i];
220
+ } else if (arg == " --clip_g" ) {
221
+ if (++i >= argc) {
222
+ invalid_arg = true ;
223
+ break ;
224
+ }
225
+ params.clip_g_path = argv[i];
217
226
} else if (arg == " --t5xxl" ) {
218
227
if (++i >= argc) {
219
228
invalid_arg = true ;
@@ -716,6 +725,7 @@ int main(int argc, const char* argv[]) {
716
725
717
726
sd_ctx_t * sd_ctx = new_sd_ctx (params.model_path .c_str (),
718
727
params.clip_l_path .c_str (),
728
+ params.clip_g_path .c_str (),
719
729
params.t5xxl_path .c_str (),
720
730
params.diffusion_model_path .c_str (),
721
731
params.vae_path .c_str (),
0 commit comments