MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / parse_args

Function parse_args

diffusers/examples/dreambooth/train_dreambooth_flux.py:215–640  ·  view source on GitHub ↗
(input_args=None)

Source from the content-addressed store, hash-verified

213
214
215def parse_args(input_args=None):
216 parser = argparse.ArgumentParser(description="Simple example of a training script.")
217 parser.add_argument(
218 "--pretrained_model_name_or_path",
219 type=str,
220 default=None,
221 required=True,
222 help="Path to pretrained model or model identifier from huggingface.co/models.",
223 )
224 parser.add_argument(
225 "--revision",
226 type=str,
227 default=None,
228 required=False,
229 help="Revision of pretrained model identifier from huggingface.co/models.",
230 )
231 parser.add_argument(
232 "--variant",
233 type=str,
234 default=None,
235 help="Variant of the model files of the pretrained model identifier from huggingface.co/models, 'e.g.' fp16",
236 )
237 parser.add_argument(
238 "--dataset_name",
239 type=str,
240 default=None,
241 help=(
242 "The name of the Dataset (from the HuggingFace hub) containing the training data of instance images (could be your own, possibly private,"
243 " dataset). It can also be a path pointing to a local copy of a dataset in your filesystem,"
244 " or to a folder containing files that 🤗 Datasets can understand."
245 ),
246 )
247 parser.add_argument(
248 "--dataset_config_name",
249 type=str,
250 default=None,
251 help="The config of the Dataset, leave as None if there's only one config.",
252 )
253 parser.add_argument(
254 "--instance_data_dir",
255 type=str,
256 default=None,
257 help=("A folder containing the training data. "),
258 )
259
260 parser.add_argument(
261 "--cache_dir",
262 type=str,
263 default=None,
264 help="The directory where the downloaded models and datasets will be stored.",
265 )
266
267 parser.add_argument(
268 "--image_column",
269 type=str,
270 default="image",
271 help="The column of the dataset containing the target image. By "
272 "default, the standard Image Dataset maps out 'file_name' "

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected