Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
7674a36a
Unverified
Commit
7674a36a
authored
Oct 20, 2022
by
Suraj Patil
Committed by
GitHub
Oct 20, 2022
Browse files
[dreambooth] dont use safety check when generating prior images (#922)
dont' use safety check when generating prior images
parent
a5eb7f42
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
examples/dreambooth/README.md
examples/dreambooth/README.md
+0
-1
examples/dreambooth/requirements.txt
examples/dreambooth/requirements.txt
+1
-0
examples/dreambooth/train_dreambooth.py
examples/dreambooth/train_dreambooth.py
+1
-1
No files found.
examples/dreambooth/README.md
View file @
7674a36a
...
@@ -10,7 +10,6 @@ The `train_dreambooth.py` script shows how to implement the training procedure a
...
@@ -10,7 +10,6 @@ The `train_dreambooth.py` script shows how to implement the training procedure a
Before running the scripts, make sure to install the library's training dependencies:
Before running the scripts, make sure to install the library's training dependencies:
```
bash
```
bash
pip
install
git+https://github.com/huggingface/diffusers.git
pip
install
-U
-r
requirements.txt
pip
install
-U
-r
requirements.txt
```
```
...
...
examples/dreambooth/requirements.txt
View file @
7674a36a
diffusers>==0.5.0
accelerate
accelerate
torchvision
torchvision
transformers>=4.21.0
transformers>=4.21.0
...
...
examples/dreambooth/train_dreambooth.py
View file @
7674a36a
...
@@ -343,7 +343,7 @@ def main():
...
@@ -343,7 +343,7 @@ def main():
if
cur_class_images
<
args
.
num_class_images
:
if
cur_class_images
<
args
.
num_class_images
:
torch_dtype
=
torch
.
float16
if
accelerator
.
device
.
type
==
"cuda"
else
torch
.
float32
torch_dtype
=
torch
.
float16
if
accelerator
.
device
.
type
==
"cuda"
else
torch
.
float32
pipeline
=
StableDiffusionPipeline
.
from_pretrained
(
pipeline
=
StableDiffusionPipeline
.
from_pretrained
(
args
.
pretrained_model_name_or_path
,
torch_dtype
=
torch_dtype
args
.
pretrained_model_name_or_path
,
torch_dtype
=
torch_dtype
,
safety_checker
=
None
)
)
pipeline
.
set_progress_bar_config
(
disable
=
True
)
pipeline
.
set_progress_bar_config
(
disable
=
True
)
...
...
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