Skip to content

Commit febaf86

Browse files
[docs] [dreambooth] note random crop (huggingface#2085)
* [docs] [dreambooth] note random crop documenting default random crop behavior
1 parent 16bb505 commit febaf86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/dreambooth/train_dreambooth.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ def parse_args(input_args=None):
156156
),
157157
)
158158
parser.add_argument(
159-
"--center_crop", action="store_true", help="Whether to center crop images before resizing to resolution"
159+
"--center_crop",
160+
default=False,
161+
action="store_true",
162+
help="Whether to center crop images before resizing to resolution. If not set, images are randomly cropped.",
160163
)
161164
parser.add_argument(
162165
"--train_text_encoder",

0 commit comments

Comments
 (0)