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
21c82799
Commit
21c82799
authored
Oct 04, 2022
by
kurumuz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gah
parent
9e1a4d34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
hydra_node/config.py
hydra_node/config.py
+1
-0
hydra_node/models.py
hydra_node/models.py
+1
-1
No files found.
hydra_node/config.py
View file @
21c82799
...
@@ -140,6 +140,7 @@ def init_config_model():
...
@@ -140,6 +140,7 @@ def init_config_model():
logger
.
info
(
f
"MODEL: {config.model_name}"
)
logger
.
info
(
f
"MODEL: {config.model_name}"
)
#S3 auth stuff
#S3 auth stuff
config
.
use_s3
=
os
.
getenv
(
'USE_S3'
,
'0'
)
config
.
s3_access_key
=
os
.
getenv
(
'S3_ACCESS_KEY'
,
None
)
config
.
s3_access_key
=
os
.
getenv
(
'S3_ACCESS_KEY'
,
None
)
config
.
s3_secret_key
=
os
.
getenv
(
'S3_SECRET_KEY'
,
None
)
config
.
s3_secret_key
=
os
.
getenv
(
'S3_SECRET_KEY'
,
None
)
config
.
s3_bucket
=
os
.
getenv
(
'S3_BUCKET'
,
None
)
config
.
s3_bucket
=
os
.
getenv
(
'S3_BUCKET'
,
None
)
...
...
hydra_node/models.py
View file @
21c82799
...
@@ -193,7 +193,7 @@ class StableDiffusionModel(nn.Module):
...
@@ -193,7 +193,7 @@ class StableDiffusionModel(nn.Module):
nn
.
Module
.
__init__
(
self
)
nn
.
Module
.
__init__
(
self
)
self
.
config
=
config
self
.
config
=
config
self
.
premodules
=
None
self
.
premodules
=
None
if
self
.
config
.
model_path
.
startswith
(
"https://"
)
:
if
self
.
config
.
use_s3
==
'1'
:
self
.
model
=
self
.
from_url
(
self
.
config
.
model_path
)
self
.
model
=
self
.
from_url
(
self
.
config
.
model_path
)
else
:
else
:
...
...
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