Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hydra Node Http
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
Hydra Node Http
Commits
6762f292
Commit
6762f292
authored
Aug 26, 2022
by
kurumuz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
https://github.com/NovelAI/hydra-node-http
into main
parents
8e6f7268
048d419c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
hydra_node/models.py
hydra_node/models.py
+1
-0
hydra_node/sanitize.py
hydra_node/sanitize.py
+0
-10
No files found.
hydra_node/models.py
View file @
6762f292
...
...
@@ -233,6 +233,7 @@ class StableDiffusionModel(nn.Module):
np
.
random
.
seed
(
request
.
seed
)
if
request
.
image
is
not
None
:
request
.
steps
=
50
#request.sampler = "ddim_img2img" #enforce ddim for now
if
request
.
sampler
==
"plms"
:
request
.
sampler
=
"k_lms"
...
...
hydra_node/sanitize.py
View file @
6762f292
...
...
@@ -65,16 +65,6 @@ def sanitize_stable_diffusion(request, config):
if
request
.
steps
>
50
:
return
False
,
"steps must be smaller than 50"
pixels
=
request
.
height
*
request
.
width
if
(
pixels
>
1024
*
512
and
pixels
<=
1024
*
1204
)
and
request
.
n_samples
>
1
:
return
False
,
"n_samples must be 1 or smaller at this resolution"
if
(
pixels
>
512
*
512
and
pixels
<=
1024
*
512
)
and
request
.
n_samples
>
2
:
return
False
,
"n_samples must be 2 or smaller this resolution"
if
(
pixels
>
256
*
256
and
pixels
<=
512
*
512
)
and
request
.
n_samples
>
4
:
return
False
,
"n_samples must be 4 or smaller at this resolution"
if
request
.
width
*
request
.
height
==
0
:
return
False
,
"width and height must be non-zero"
...
...
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