Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
6365a41f
Commit
6365a41f
authored
Oct 02, 2022
by
d8ahazard
Committed by
AUTOMATIC1111
Oct 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update esrgan_model.py
Use alternate ESRGAN Model download path.
parent
3ff0de2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
esrgan_model.py
modules/esrgan_model.py
+2
-2
No files found.
modules/esrgan_model.py
View file @
6365a41f
...
@@ -73,8 +73,8 @@ def fix_model_layers(crt_model, pretrained_net):
...
@@ -73,8 +73,8 @@ def fix_model_layers(crt_model, pretrained_net):
class
UpscalerESRGAN
(
Upscaler
):
class
UpscalerESRGAN
(
Upscaler
):
def
__init__
(
self
,
dirname
):
def
__init__
(
self
,
dirname
):
self
.
name
=
"ESRGAN"
self
.
name
=
"ESRGAN"
self
.
model_url
=
"https://
drive.google.com/u/0/uc?id=1TPrz5QKd8DHHt1k8SRtm6tMiPjz_Qene&export=download
"
self
.
model_url
=
"https://
github.com/cszn/KAIR/releases/download/v1.0/ESRGAN.pth
"
self
.
model_name
=
"ESRGAN
4x"
self
.
model_name
=
"ESRGAN
_
4x"
self
.
scalers
=
[]
self
.
scalers
=
[]
self
.
user_path
=
dirname
self
.
user_path
=
dirname
self
.
model_path
=
os
.
path
.
join
(
models_path
,
self
.
name
)
self
.
model_path
=
os
.
path
.
join
(
models_path
,
self
.
name
)
...
...
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