@@ -649,44 +649,6 @@ void parse_args(int argc, const char** argv, SDParams& params) {
649649 params.ctxParams .n_threads = sd_get_num_physical_cores ();
650650 }
651651
652- if (params.lastRequest .prompt .length () == 0 ) {
653- fprintf (stderr, " error: the following arguments are required: prompt\n " );
654- print_usage (argc, argv, options);
655- exit (1 );
656- }
657-
658- if (params.ctxParams .model_path .length () == 0 && params.ctxParams .diffusion_model_path .length () == 0 ) {
659- fprintf (stderr, " error: the following arguments are required: model_path/diffusion_model\n " );
660- print_usage (argc, argv, options);
661- exit (1 );
662- }
663-
664- if (params.output_path .length () == 0 ) {
665- fprintf (stderr, " error: the following arguments are required: output_path\n " );
666- print_usage (argc, argv, options);
667- exit (1 );
668- }
669-
670- if (params.lastRequest .height <= 0 ) {
671- fprintf (stderr, " error: the height must be greater than 0\n " );
672- exit (1 );
673- }
674-
675- if (params.lastRequest .width <= 0 ) {
676- fprintf (stderr, " error: the width must be greater than 0\n " );
677- exit (1 );
678- }
679-
680- if (params.lastRequest .sample_params .sample_steps <= 0 ) {
681- fprintf (stderr, " error: the sample_steps must be greater than 0\n " );
682- exit (1 );
683- }
684-
685- if (params.lastRequest .strength < 0 .f || params.lastRequest .strength > 1 .f ) {
686- fprintf (stderr, " error: can only work with strength in [0.0, 1.0]\n " );
687- exit (1 );
688- }
689-
690652 if (params.lastRequest .seed < 0 ) {
691653 srand ((int )time (nullptr ));
692654 params.lastRequest .seed = rand ();
0 commit comments