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

Function get_args

diffusers/examples/cogvideo/train_cogvideox_lora.py:60–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def get_args():
61 parser = argparse.ArgumentParser(description="Simple example of a training script for CogVideoX.")
62
63 # Model information
64 parser.add_argument(
65 "--pretrained_model_name_or_path",
66 type=str,
67 default=None,
68 required=True,
69 help="Path to pretrained model or model identifier from huggingface.co/models.",
70 )
71 parser.add_argument(
72 "--revision",
73 type=str,
74 default=None,
75 required=False,
76 help="Revision of pretrained model identifier from huggingface.co/models.",
77 )
78 parser.add_argument(
79 "--variant",
80 type=str,
81 default=None,
82 help="Variant of the model files of the pretrained model identifier from huggingface.co/models, 'e.g.' fp16",
83 )
84 parser.add_argument(
85 "--cache_dir",
86 type=str,
87 default=None,
88 help="The directory where the downloaded models and datasets will be stored.",
89 )
90
91 # Dataset information
92 parser.add_argument(
93 "--dataset_name",
94 type=str,
95 default=None,
96 help=(
97 "The name of the Dataset (from the HuggingFace hub) containing the training data of instance images (could be your own, possibly private,"
98 " dataset). It can also be a path pointing to a local copy of a dataset in your filesystem,"
99 " or to a folder containing files that 🤗 Datasets can understand."
100 ),
101 )
102 parser.add_argument(
103 "--dataset_config_name",
104 type=str,
105 default=None,
106 help="The config of the Dataset, leave as None if there's only one config.",
107 )
108 parser.add_argument(
109 "--instance_data_root",
110 type=str,
111 default=None,
112 help=("A folder containing the training data."),
113 )
114 parser.add_argument(
115 "--video_column",
116 type=str,
117 default="video",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected