Real-ESRGAN icon indicating copy to clipboard operation
Real-ESRGAN copied to clipboard

node js version ?

Open ilsyaa opened this issue 3 years ago • 1 comments

can you make the nodejs version

ilsyaa avatar Jul 11 '22 11:07 ilsyaa

you can use it in node with child_process

Minori-ty avatar Aug 26 '22 02:08 Minori-ty

使用nodejs的child_process调用这个release版本的exe, for example

var spawn = require('child_process').spawn;
  
spawn(esrganPath,[
    '-i',`inputFilePath`,
    '-o',`outputFilePath`,
    '-n',`modelName`
    '...','...'//more args depend on your own project
  ]); 

ArSrNa avatar Dec 22 '22 06:12 ArSrNa