Advertisement
Guest User

AI denoiser drag+drop

a guest
Jul 23rd, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO off
  2. :: Get and setup
  3. :: IntelOIDenoiser (CPU must support SSE4.1)
  4. ::          https://github.com/DeclanRussell/IntelOIDenoiser
  5. :: OR
  6. :: NvidiaAIDenoiser (Maxwell GPU or newer architecture with 418.xx or newer driver)
  7. ::      https://github.com/DeclanRussell/NvidiaAIDenoiser
  8. ::
  9. :: Change dn_path to location of denoiser on your computer
  10. :: uncomment dn_path2 if you wish to compare both denoisers.
  11. ::
  12. :: Drag and drop one or more .pngs onto this .bat file to denoise them.
  13.  
  14.  
  15. SET dn_path="C:\Denoiser_v2.3\denoiser.exe"
  16. ::SET dn_path2="C:\Denoiser_v1.1\Denoiser.exe"
  17.  
  18. :Loop
  19. IF "%1"=="" GOTO Continue
  20.  
  21.     ECHO %1
  22.  
  23.     FOR /F "tokens=1,2 delims=. " %%a IN ("%1") DO (
  24.         %dn_path% -i %1 -o %%a_dn.%%b
  25. ::      %dn_path2% -i %1 -o %%a_dn2.%%b        
  26.     )
  27.  
  28. SHIFT
  29. GOTO Loop
  30. :Continue
  31.  
  32. ECHO .
  33. ECHO == END ==
  34. ECHO .
  35. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement