Bringing-Old-Photos-Back-to-Life icon indicating copy to clipboard operation
Bringing-Old-Photos-Back-to-Life copied to clipboard

: unrecognized arguments

Open tql12313 opened this issue 1 year ago • 1 comments

95937305bfb794ba770e1a399cb1786 How to solve this problem!

tql12313 avatar Sep 23 '23 13:09 tql12313

the error is produced by the subprocess call in the run.py file. the call is made to run detection.py/test.py file with arguments from the script, which is specified like this;

code_snip

so when you execute the script run.py from terminal with input/output paths, it is taken as a string. but when run.py executes another script from the code using subprocess; the path is not taken as a string in quotes; so the subprocess consider it as an external command rather than a string of path. i was facing the same issue so i changed the code a little bit as below; and it works fine.

code_snip2

chintan-eonian avatar Dec 21 '23 11:12 chintan-eonian