diff --git a/ppdiffusers/deploy/gradio_demo.py b/ppdiffusers/deploy/gradio_demo.py index 94bae307a..b40b6a3e0 100644 --- a/ppdiffusers/deploy/gradio_demo.py +++ b/ppdiffusers/deploy/gradio_demo.py @@ -263,13 +263,13 @@ def parse_arguments(): choices=["paddle", "paddle_tensorrt"], help="The inference runtime backend of unet model and text encoder model.", ) - parser.add_argument("--use_fp16", type=strtobool, default=False, help="Wheter to use FP16 mode") + parser.add_argument("--use_fp16", type=strtobool, default=True, help="Wheter to use FP16 mode") parser.add_argument("--use_bf16", type=strtobool, default=False, help="Wheter to use BF16 mode") parser.add_argument("--device_id", type=int, default=0, help="The selected gpu id.") parser.add_argument( "--parse_prompt_type", type=str, - default="raw", + default="lpw", choices=[ "raw", "lpw",