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

Function parse_args

diffusers/examples/dreambooth/train_dreambooth_sd3.py:218–642  ·  view source on GitHub ↗
(input_args=None)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected