MCPcopy Index your code
hub / github.com/huggingface/diffusers / get_args

Function get_args

scripts/convert_animatediff_sparsectrl_to_diffusers.py:33–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def get_args():
34 parser = argparse.ArgumentParser()
35 parser.add_argument("--ckpt_path", type=str, required=True, help="Path to checkpoint")
36 parser.add_argument("--output_path", type=str, required=True, help="Path to output directory")
37 parser.add_argument(
38 "--max_motion_seq_length",
39 type=int,
40 default=32,
41 help="Max motion sequence length supported by the motion adapter",
42 )
43 parser.add_argument(
44 "--conditioning_channels", type=int, default=4, help="Number of channels in conditioning input to controlnet"
45 )
46 parser.add_argument(
47 "--use_simplified_condition_embedding",
48 action="store_true",
49 default=False,
50 help="Whether or not to use simplified condition embedding. When `conditioning_channels==4` i.e. latent inputs, set this to `True`. When `conditioning_channels==3` i.e. image inputs, set this to `False`",
51 )
52 parser.add_argument(
53 "--save_fp16",
54 action="store_true",
55 default=False,
56 help="Whether or not to save model in fp16 precision along with fp32",
57 )
58 parser.add_argument(
59 "--push_to_hub", action="store_true", default=False, help="Whether or not to push saved model to the HF hub"
60 )
61 return parser.parse_args()
62
63
64if __name__ == "__main__":

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…