We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c62c9 commit dafd929Copy full SHA for dafd929
examples/research_projects/autoencoderkl/train_autoencoderkl.py
@@ -486,6 +486,9 @@ def parse_args(input_args=None):
486
else:
487
args = parser.parse_args()
488
489
+ if args.pretrained_model_name_or_path is not None and args.model_config_name_or_path is not None:
490
+ raise ValueError("Cannot specify both `--pretrained_model_name_or_path` and `--model_config_name_or_path`")
491
+
492
if args.dataset_name is None and args.train_data_dir is None:
493
raise ValueError("Specify either `--dataset_name` or `--train_data_dir`")
494
0 commit comments