Skip to content

Commit 085a235

Browse files
committed
fix dirpath in esrgan script
1 parent 5fba812 commit 085a235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/real_esrgan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def main():
183183
"pretrained_weights", "Real-ESRGAN", args.model_name + ".pth"
184184
)
185185
if not os.path.isfile(model_path):
186-
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
186+
ROOT_DIR = os.getcwd()
187187
for url in file_url:
188188
# model_path will be updated
189189
model_path = load_file_from_url(

0 commit comments

Comments
 (0)