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
0763a7ed
Unverified
Commit
0763a7ed
authored
Dec 03, 2024
by
Lucain
Committed by
GitHub
Dec 02, 2024
Browse files
Let server decide default repo visibility (#10047)
parent
963ffca4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
8 deletions
+9
-8
docs/source/en/tutorials/basic_training.md
docs/source/en/tutorials/basic_training.md
+1
-1
docs/source/ko/tutorials/basic_training.md
docs/source/ko/tutorials/basic_training.md
+1
-1
src/diffusers/configuration_utils.py
src/diffusers/configuration_utils.py
+1
-1
src/diffusers/models/modeling_flax_utils.py
src/diffusers/models/modeling_flax_utils.py
+1
-1
src/diffusers/models/modeling_utils.py
src/diffusers/models/modeling_utils.py
+1
-1
src/diffusers/pipelines/pipeline_flax_utils.py
src/diffusers/pipelines/pipeline_flax_utils.py
+1
-1
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-1
src/diffusers/utils/hub_utils.py
src/diffusers/utils/hub_utils.py
+2
-1
No files found.
docs/source/en/tutorials/basic_training.md
View file @
0763a7ed
...
...
@@ -75,7 +75,7 @@ For convenience, create a `TrainingConfig` class containing the training hyperpa
...
push_to_hub
=
True
# whether to upload the saved model to the HF Hub
...
hub_model_id
=
"<your-username>/<my-awesome-model>"
# the name of the repository to create on the HF Hub
...
hub_private_repo
=
Fals
e
...
hub_private_repo
=
Non
e
...
overwrite_output_dir
=
True
# overwrite the old model when re-running the notebook
...
seed
=
0
...
...
docs/source/ko/tutorials/basic_training.md
View file @
0763a7ed
...
...
@@ -76,7 +76,7 @@ huggingface-cli login
...
output_dir
=
"ddpm-butterflies-128"
# 로컬 및 HF Hub에 저장되는 모델명
...
push_to_hub
=
True
# 저장된 모델을 HF Hub에 업로드할지 여부
...
hub_private_repo
=
Fals
e
...
hub_private_repo
=
Non
e
...
overwrite_output_dir
=
True
# 노트북을 다시 실행할 때 이전 모델에 덮어씌울지
...
seed
=
0
...
...
src/diffusers/configuration_utils.py
View file @
0763a7ed
...
...
@@ -170,7 +170,7 @@ class ConfigMixin:
if
push_to_hub
:
commit_message
=
kwargs
.
pop
(
"commit_message"
,
None
)
private
=
kwargs
.
pop
(
"private"
,
Fals
e
)
private
=
kwargs
.
pop
(
"private"
,
Non
e
)
create_pr
=
kwargs
.
pop
(
"create_pr"
,
False
)
token
=
kwargs
.
pop
(
"token"
,
None
)
repo_id
=
kwargs
.
pop
(
"repo_id"
,
save_directory
.
split
(
os
.
path
.
sep
)[
-
1
])
...
...
src/diffusers/models/modeling_flax_utils.py
View file @
0763a7ed
...
...
@@ -530,7 +530,7 @@ class FlaxModelMixin(PushToHubMixin):
if
push_to_hub
:
commit_message
=
kwargs
.
pop
(
"commit_message"
,
None
)
private
=
kwargs
.
pop
(
"private"
,
Fals
e
)
private
=
kwargs
.
pop
(
"private"
,
Non
e
)
create_pr
=
kwargs
.
pop
(
"create_pr"
,
False
)
token
=
kwargs
.
pop
(
"token"
,
None
)
repo_id
=
kwargs
.
pop
(
"repo_id"
,
save_directory
.
split
(
os
.
path
.
sep
)[
-
1
])
...
...
src/diffusers/models/modeling_utils.py
View file @
0763a7ed
...
...
@@ -338,7 +338,7 @@ class ModelMixin(torch.nn.Module, PushToHubMixin):
if
push_to_hub
:
commit_message
=
kwargs
.
pop
(
"commit_message"
,
None
)
private
=
kwargs
.
pop
(
"private"
,
Fals
e
)
private
=
kwargs
.
pop
(
"private"
,
Non
e
)
create_pr
=
kwargs
.
pop
(
"create_pr"
,
False
)
token
=
kwargs
.
pop
(
"token"
,
None
)
repo_id
=
kwargs
.
pop
(
"repo_id"
,
save_directory
.
split
(
os
.
path
.
sep
)[
-
1
])
...
...
src/diffusers/pipelines/pipeline_flax_utils.py
View file @
0763a7ed
...
...
@@ -180,7 +180,7 @@ class FlaxDiffusionPipeline(ConfigMixin, PushToHubMixin):
if
push_to_hub
:
commit_message
=
kwargs
.
pop
(
"commit_message"
,
None
)
private
=
kwargs
.
pop
(
"private"
,
Fals
e
)
private
=
kwargs
.
pop
(
"private"
,
Non
e
)
create_pr
=
kwargs
.
pop
(
"create_pr"
,
False
)
token
=
kwargs
.
pop
(
"token"
,
None
)
repo_id
=
kwargs
.
pop
(
"repo_id"
,
save_directory
.
split
(
os
.
path
.
sep
)[
-
1
])
...
...
src/diffusers/pipelines/pipeline_utils.py
View file @
0763a7ed
...
...
@@ -229,7 +229,7 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
if
push_to_hub
:
commit_message
=
kwargs
.
pop
(
"commit_message"
,
None
)
private
=
kwargs
.
pop
(
"private"
,
Fals
e
)
private
=
kwargs
.
pop
(
"private"
,
Non
e
)
create_pr
=
kwargs
.
pop
(
"create_pr"
,
False
)
token
=
kwargs
.
pop
(
"token"
,
None
)
repo_id
=
kwargs
.
pop
(
"repo_id"
,
save_directory
.
split
(
os
.
path
.
sep
)[
-
1
])
...
...
src/diffusers/utils/hub_utils.py
View file @
0763a7ed
...
...
@@ -564,7 +564,8 @@ class PushToHubMixin:
commit_message (`str`, *optional*):
Message to commit while pushing. Default to `"Upload {object}"`.
private (`bool`, *optional*):
Whether or not the repository created should be private.
Whether to make the repo private. If `None` (default), the repo will be public unless the
organization's default is private. This value is ignored if the repo already exists.
token (`str`, *optional*):
The token to use as HTTP bearer authorization for remote files. The token generated when running
`huggingface-cli login` (stored in `~/.huggingface`).
...
...
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