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
OpenDAS
diffusers
Commits
159885ad
Unverified
Commit
159885ad
authored
Feb 09, 2024
by
Sayak Paul
Committed by
GitHub
Feb 08, 2024
Browse files
correct hub_token exposition behaviour (thanks to @bghira). (#6918)
parent
7337eea5
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
examples/textual_inversion/textual_inversion_sdxl.py
examples/textual_inversion/textual_inversion_sdxl.py
+6
-0
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py
...uerstchen/text_to_image/train_text_to_image_lora_prior.py
+6
-0
examples/wuerstchen/text_to_image/train_text_to_image_prior.py
...les/wuerstchen/text_to_image/train_text_to_image_prior.py
+6
-0
No files found.
examples/textual_inversion/textual_inversion_sdxl.py
View file @
159885ad
...
@@ -584,6 +584,12 @@ class TextualInversionDataset(Dataset):
...
@@ -584,6 +584,12 @@ class TextualInversionDataset(Dataset):
def
main
():
def
main
():
args
=
parse_args
()
args
=
parse_args
()
if
args
.
report_to
==
"wandb"
and
args
.
hub_token
is
not
None
:
raise
ValueError
(
"You cannot use both --report_to=wandb and --hub_token due to a security risk of exposing your token."
" Please use `huggingface-cli login` to authenticate with the Hub."
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
accelerator_project_config
=
ProjectConfiguration
(
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
)
accelerator_project_config
=
ProjectConfiguration
(
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
)
accelerator
=
Accelerator
(
accelerator
=
Accelerator
(
...
...
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py
View file @
159885ad
...
@@ -442,6 +442,12 @@ def parse_args():
...
@@ -442,6 +442,12 @@ def parse_args():
def
main
():
def
main
():
args
=
parse_args
()
args
=
parse_args
()
if
args
.
report_to
==
"wandb"
and
args
.
hub_token
is
not
None
:
raise
ValueError
(
"You cannot use both --report_to=wandb and --hub_token due to a security risk of exposing your token."
" Please use `huggingface-cli login` to authenticate with the Hub."
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
accelerator_project_config
=
ProjectConfiguration
(
accelerator_project_config
=
ProjectConfiguration
(
total_limit
=
args
.
checkpoints_total_limit
,
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
total_limit
=
args
.
checkpoints_total_limit
,
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
...
...
examples/wuerstchen/text_to_image/train_text_to_image_prior.py
View file @
159885ad
...
@@ -440,6 +440,12 @@ def parse_args():
...
@@ -440,6 +440,12 @@ def parse_args():
def
main
():
def
main
():
args
=
parse_args
()
args
=
parse_args
()
if
args
.
report_to
==
"wandb"
and
args
.
hub_token
is
not
None
:
raise
ValueError
(
"You cannot use both --report_to=wandb and --hub_token due to a security risk of exposing your token."
" Please use `huggingface-cli login` to authenticate with the Hub."
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
logging_dir
=
os
.
path
.
join
(
args
.
output_dir
,
args
.
logging_dir
)
accelerator_project_config
=
ProjectConfiguration
(
accelerator_project_config
=
ProjectConfiguration
(
total_limit
=
args
.
checkpoints_total_limit
,
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
total_limit
=
args
.
checkpoints_total_limit
,
project_dir
=
args
.
output_dir
,
logging_dir
=
logging_dir
...
...
Prev
1
2
3
Next
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