Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
9aa6fcab
Commit
9aa6fcab
authored
Jan 25, 2023
by
patil-suraj
Browse files
fix docs for center_crop
parent
febaf863
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
57 additions
and
12 deletions
+57
-12
examples/dreambooth/train_dreambooth.py
examples/dreambooth/train_dreambooth.py
+4
-1
examples/dreambooth/train_dreambooth_flax.py
examples/dreambooth/train_dreambooth_flax.py
+7
-1
examples/dreambooth/train_dreambooth_lora.py
examples/dreambooth/train_dreambooth_lora.py
+7
-1
examples/research_projects/colossalai/train_dreambooth_colossalai.py
...search_projects/colossalai/train_dreambooth_colossalai.py
+7
-1
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
...h_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
+7
-1
examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py
...ts/intel_opts/textual_inversion/textual_inversion_bf16.py
+1
-1
examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py
...ulti_subject_dreambooth/train_multi_subject_dreambooth.py
+7
-1
examples/text_to_image/train_text_to_image.py
examples/text_to_image/train_text_to_image.py
+5
-1
examples/text_to_image/train_text_to_image_flax.py
examples/text_to_image/train_text_to_image_flax.py
+5
-1
examples/text_to_image/train_text_to_image_lora.py
examples/text_to_image/train_text_to_image_lora.py
+5
-1
examples/textual_inversion/textual_inversion.py
examples/textual_inversion/textual_inversion.py
+1
-1
examples/textual_inversion/textual_inversion_flax.py
examples/textual_inversion/textual_inversion_flax.py
+1
-1
No files found.
examples/dreambooth/train_dreambooth.py
View file @
9aa6fcab
...
...
@@ -159,7 +159,10 @@ def parse_args(input_args=None):
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution. If not set, images are randomly cropped."
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_text_encoder"
,
...
...
examples/dreambooth/train_dreambooth_flax.py
View file @
9aa6fcab
...
...
@@ -132,7 +132,13 @@ def parse_args():
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_text_encoder"
,
action
=
"store_true"
,
help
=
"Whether to train the text encoder"
)
parser
.
add_argument
(
...
...
examples/dreambooth/train_dreambooth_lora.py
View file @
9aa6fcab
...
...
@@ -210,7 +210,13 @@ def parse_args(input_args=None):
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_batch_size"
,
type
=
int
,
default
=
4
,
help
=
"Batch size (per device) for the training dataloader."
...
...
examples/research_projects/colossalai/train_dreambooth_colossalai.py
View file @
9aa6fcab
...
...
@@ -139,7 +139,13 @@ def parse_args(input_args=None):
help
=
"Placement Policy for Gemini. Valid when using colossalai as dist plan."
,
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_batch_size"
,
type
=
int
,
default
=
4
,
help
=
"Batch size (per device) for the training dataloader."
...
...
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
View file @
9aa6fcab
...
...
@@ -154,7 +154,13 @@ def parse_args():
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_text_encoder"
,
action
=
"store_true"
,
help
=
"Whether to train the text encoder"
)
parser
.
add_argument
(
...
...
examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py
View file @
9aa6fcab
...
...
@@ -130,7 +130,7 @@ def parse_args():
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution
.
"
)
parser
.
add_argument
(
"--train_batch_size"
,
type
=
int
,
default
=
16
,
help
=
"Batch size (per device) for the training dataloader."
...
...
examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py
View file @
9aa6fcab
...
...
@@ -138,7 +138,13 @@ def parse_args(input_args=None):
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--train_text_encoder"
,
action
=
"store_true"
,
help
=
"Whether to train the text encoder"
)
parser
.
add_argument
(
...
...
examples/text_to_image/train_text_to_image.py
View file @
9aa6fcab
...
...
@@ -134,8 +134,12 @@ def parse_args():
)
parser
.
add_argument
(
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution (if not set, random crop will be used)"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--random_flip"
,
...
...
examples/text_to_image/train_text_to_image_flax.py
View file @
9aa6fcab
...
...
@@ -116,8 +116,12 @@ def parse_args():
)
parser
.
add_argument
(
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution (if not set, random crop will be used)"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--random_flip"
,
...
...
examples/text_to_image/train_text_to_image_lora.py
View file @
9aa6fcab
...
...
@@ -181,8 +181,12 @@ def parse_args():
)
parser
.
add_argument
(
"--center_crop"
,
default
=
False
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution (if not set, random crop will be used)"
,
help
=
(
"Whether to center crop the input images to the resolution. If not set, the images will be randomly"
" cropped. The images will be resized to the resolution first before cropping."
),
)
parser
.
add_argument
(
"--random_flip"
,
...
...
examples/textual_inversion/textual_inversion.py
View file @
9aa6fcab
...
...
@@ -147,7 +147,7 @@ def parse_args():
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution
.
"
)
parser
.
add_argument
(
"--train_batch_size"
,
type
=
int
,
default
=
16
,
help
=
"Batch size (per device) for the training dataloader."
...
...
examples/textual_inversion/textual_inversion_flax.py
View file @
9aa6fcab
...
...
@@ -109,7 +109,7 @@ def parse_args():
),
)
parser
.
add_argument
(
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution"
"--center_crop"
,
action
=
"store_true"
,
help
=
"Whether to center crop images before resizing to resolution
.
"
)
parser
.
add_argument
(
"--train_batch_size"
,
type
=
int
,
default
=
16
,
help
=
"Batch size (per device) for the training dataloader."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment