feat: auto-range system
This commit is contained in:
parent
ab46134e7b
commit
0ad4d4771d
@ -28,9 +28,6 @@ function add_range () # $1: Start frame, $2: End frame, $3: Noise level
|
||||
echo -e "$1\t$2\t$3" >> "$RangesList"
|
||||
}
|
||||
|
||||
StartFrame=$(ls "$FramesDir" | sort | head -n 1 | sed 's|.png$||')
|
||||
EndFrame=$(ls "$FramesDir" | sort | tail -n 1 | sed 's|.png$||')
|
||||
NoiseLevel="1"
|
||||
source "$RangeGenConf"
|
||||
|
||||
:> "$RangesList"
|
||||
add_range "$StartFrame" "$EndFrame" "$NoiseLevel"
|
||||
"$DepsDir/range-gen/range-gen.exe" -j "$Jobs" -n "$NoiseLevel" "$FramesDir" "$RangesList" "$Threshold"
|
||||
|
3
settings/range-gen.conf
Normal file
3
settings/range-gen.conf
Normal file
@ -0,0 +1,3 @@
|
||||
Jobs="$(nproc)"
|
||||
Threshold="365"
|
||||
NoiseLevel="1"
|
@ -48,6 +48,7 @@ readonly RangesList="$OutputDir/ranges.list"
|
||||
readonly Video2d2xConf="$SettingsDir/video2d-2x.conf"
|
||||
readonly Waifu2xConf="$SettingsDir/waifu2x-caffe.conf"
|
||||
readonly FfmpegConf="$SettingsDir/ffmpeg.conf"
|
||||
readonly RangeGenConf="$SettingsDir/range-gen.conf"
|
||||
|
||||
source "$ScriptsDir/returncodes.lib"
|
||||
source "$ScriptsDir/common.lib"
|
||||
|
Loading…
Reference in New Issue
Block a user