Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
Real-ESRGAN
Commits
93cb58f4
Unverified
Commit
93cb58f4
authored
Dec 26, 2023
by
Maksim Skobeev
Committed by
GitHub
Dec 26, 2023
Browse files
Update model.py
parent
7a4e62c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RealESRGAN/model.py
RealESRGAN/model.py
+1
-1
No files found.
RealESRGAN/model.py
View file @
93cb58f4
...
...
@@ -43,7 +43,7 @@ class RealESRGAN:
cache_dir
=
os
.
path
.
dirname
(
model_path
)
local_filename
=
os
.
path
.
basename
(
model_path
)
config_file_url
=
hf_hub_url
(
repo_id
=
config
[
'repo_id'
],
filename
=
config
[
'filename'
])
htr
=
hf_hub_download
(
repo_id
=
config
[
'repo_id'
],
local_dir
=
cache_dir
,
filename
=
config
[
'filename'
])
htr
=
hf_hub_download
(
repo_id
=
config
[
'repo_id'
],
cache_dir
=
cache_dir
,
local_dir
=
cache_dir
,
filename
=
config
[
'filename'
])
print
(
htr
)
# cached_download(config_file_url, cache_dir=cache_dir, force_filename=local_filename)
print
(
'Weights downloaded to:'
,
os
.
path
.
join
(
cache_dir
,
local_filename
))
...
...
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