MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / parse_args

Function parse_args

inference_basic.py:79–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 loop=0)
78
79def parse_args():
80 parser = argparse.ArgumentParser(
81 description="Script to train Stable Diffusion XL for InstructPix2Pix."
82 )
83
84 parser.add_argument(
85 "--pretrained_model_name_or_path",
86 type=str,
87 default=None,
88 required=True
89 )
90
91 parser.add_argument(
92 "--validation_image",
93 type=str,
94 default=None,
95 help=(
96 "A set of paths to the controlnext conditioning image be evaluated every `--validation_steps`"
97 " and logged to `--report_to`. Provide either a matching number of `--validation_prompt`s, a"
98 " a single `--validation_prompt` to be used with all `--validation_image`s, or a single"
99 " `--validation_image` that will be used with all `--validation_prompt`s."
100 ),
101 )
102 parser.add_argument(
103 "--validation_control_folder",
104 type=str,
105 default=None,
106 help=(
107 "the validation control image"
108 ),
109 )
110
111 parser.add_argument(
112 "--output_dir",
113 type=str,
114 default=None,
115 required=True
116 )
117
118 parser.add_argument(
119 "--height",
120 type=int,
121 default=768,
122 required=False
123 )
124
125 parser.add_argument(
126 "--width",
127 type=int,
128 default=512,
129 required=False
130 )
131
132 parser.add_argument(
133 "--guidance_scale",
134 type=float,
135 default=2.0,
136 required=False

Callers 1

inference_basic.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected