Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
4ff274e1
Commit
4ff274e1
authored
Oct 19, 2022
by
timntorres
Committed by
AUTOMATIC1111
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise comments.
parent
6014fb8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/hypernetworks/hypernetwork.py
modules/hypernetworks/hypernetwork.py
+1
-1
modules/images.py
modules/images.py
+1
-1
No files found.
modules/hypernetworks/hypernetwork.py
View file @
4ff274e1
...
...
@@ -256,7 +256,7 @@ def stack_conds(conds):
def
train_hypernetwork
(
hypernetwork_name
,
learn_rate
,
batch_size
,
data_root
,
log_directory
,
training_width
,
training_height
,
steps
,
create_image_every
,
save_hypernetwork_every
,
template_file
,
preview_from_txt2img
,
preview_prompt
,
preview_negative_prompt
,
preview_steps
,
preview_sampler_index
,
preview_cfg_scale
,
preview_seed
,
preview_width
,
preview_height
):
# images
is required here to give training previews their infotext. Importing this at the very top causes a circular dependency
.
# images
allows training previews to have infotext. Importing it at the top causes a circular import problem
.
from
modules
import
images
assert
hypernetwork_name
,
'hypernetwork not selected'
...
...
modules/images.py
View file @
4ff274e1
...
...
@@ -419,7 +419,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
try
:
os
.
makedirs
(
path
,
exist_ok
=
True
)
except
FileExistsError
:
# If the file already exists,
continue and
allow said file to be overwritten.
# If the file already exists, allow said file to be overwritten.
pass
if
forced_filename
is
None
:
...
...
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