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
b40b4e76
Commit
b40b4e76
authored
Aug 25, 2022
by
Eren Doğan
Committed by
GitHub
Aug 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete stuff
parent
53864bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
hydra_node/sanitize.py
hydra_node/sanitize.py
+0
-10
No files found.
hydra_node/sanitize.py
View file @
b40b4e76
...
...
@@ -64,16 +64,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