"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "0ed6729bb130cb1d43fb2ede60b0c50f9ee14d68"
Unverified Commit 521bc5fa authored by Maksim Skobeev's avatar Maksim Skobeev Committed by GitHub
Browse files

Update model.py

parent 9a923402
...@@ -43,7 +43,7 @@ class RealESRGAN: ...@@ -43,7 +43,7 @@ class RealESRGAN:
cache_dir = os.path.dirname(model_path) cache_dir = os.path.dirname(model_path)
local_filename = os.path.basename(model_path) local_filename = os.path.basename(model_path)
config_file_url = hf_hub_url(repo_id=config['repo_id'], filename=config['filename']) config_file_url = hf_hub_url(repo_id=config['repo_id'], filename=config['filename'])
hf_hub_download(repo_id=config['repo_id'], cache_dir=cache_dir, filename=config['filename'], force_filename=local_filename) hf_hub_download(repo_id=config['repo_id'], cache_dir=cache_dir, filename=config['filename'])
print('Weights downloaded to:', os.path.join(cache_dir, local_filename)) print('Weights downloaded to:', os.path.join(cache_dir, local_filename))
loadnet = torch.load(model_path) loadnet = torch.load(model_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment