這是我的檔,從這兒下的,人家說不是原檔.常發生input output file not matched error
echo off
chcp 65001
echo. rem 出力画像フォーマットをjpgに変えただけで、他はtgmain(バッチファイル不使用)と同じ
rem 追加超解像を行う場合はpngにすべき
rem I just changed the output image format to jpg, but everything else is the same as tgmain without the batch file.
rem If you want to do additional super-resolution, it should be png. rem OPTION------------------------------------------------------------------------------------------ rem 対応するJavPlayerのバージョン(互換性チェック用)
rem Target JavPlayer version (for compatibility check)
::JP_VER 111 rem 入力画像数下限(TecoGANは6, TopazVEAIは5, 他は各ツールのマニュアル参照)
rem Minimum number og input images. (TecoGAN:6, TopazVEAI:5, others:refer to their manuals.)
::MIN_FRAMES 6 rem 入力画像の横と縦のピクセル数下限(通常は0を指定して無効化,TopazVEAIは50未満の画像を処理できないため50)
rem Lower limit of the image width & height (Normally set to 0 and disable. 50 for TopazVEAI.)
::MIN_W 64
::MIN_H 64 rem 出力画像のズレ補正(TecoGANには0.4を指定,他のツールには通常0.0) ※1.0なら入力画像の1ピクセル分右(下)
rem Correction of output image misalignment (Normally set to 0.0. 0.4 for TecoGAN.) *With 1.0, move to the right (bottom) by one pixel of input image.
::SHIFT_X 0.0
::SHIFT_Y 0.0 rem 動画との合成時に追加するノイズの強さ(0~9)
rem Strength of the noise to be added when combining with video (0-9)
::NOISE_LEV 2 rem 1プロセスが必要とするVRAM容量(単位M = VRAM_USAGE + VRAM_USAGE_P入力画像のピクセル数/10000
rem 並列実行を管理するために使用される
rem Amount of VRAM required by one process (Unit:M = VRAM_USAGE + VRAM_USAGE_P[Number of pixels in the input image]/10000
rem Used to manage parallel execution.
::VRAM_USAGE 8192 rem ARGUMENTS--------------------------------------------------------------------------------------- rem 引数1(%1)は使用するGPUの番号(0<=GPUID<=3,7:CPU)
rem argument1(%1) is the ID of the GPU to use (0<=GPUID<=3,7:CPU) rem 引数2(%2)は入出力フォルダ番号(output,addout)
rem argument2(%2) is the I/O folder number (input,output) rem 引数3(%3)は作業用フォルダのパス(TGMAINやTG-MODELがある場所)
rem argument3(%3) is the path to the work folder (Where TGMAIN and TG-MODEL are located) rem 引数4(%4)はモデル名(TG-STD,TG-AF1,etc.)
rem argument4(%4) is the model name (TG-STD,TG-AF1,etc.) rem PROCESS----------------------------------------------------------------------------------------- cd "%~3bvpp" rem 超解像処理を実行
rem Execute super-resolution processing.
@echo on
bvpp.exe basicvsr_plusplus_vimeo90k_bd.py basicvsr_plusplus_c64n7_8x1_300k_vimeo90k_bd_20210305-ab315ab1.pth ../input%2 ../output%2 --filename-tmpl {:04d}.png --device %1 --max-seq-len 300
|