mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
GUIでTTAモードの有無で出力ファイル名が変化するようにした
This commit is contained in:
parent
acc340a95a
commit
6989f81f4e
@ -137,6 +137,8 @@ private:
|
|||||||
|
|
||||||
if (mode.find("noise") != mode.npos || mode.find("auto_scale") != mode.npos)
|
if (mode.find("noise") != mode.npos || mode.find("auto_scale") != mode.npos)
|
||||||
addstr += "(Level" + std::to_string(noise_level) + ")";
|
addstr += "(Level" + std::to_string(noise_level) + ")";
|
||||||
|
if (use_tta)
|
||||||
|
addstr += "(tta)";
|
||||||
if (mode.find("scale") != mode.npos)
|
if (mode.find("scale") != mode.npos)
|
||||||
addstr += "(x" + std::to_string(scale_ratio) + ")";
|
addstr += "(x" + std::to_string(scale_ratio) + ")";
|
||||||
|
|
||||||
@ -945,6 +947,8 @@ int WINAPI WinMain(HINSTANCE hInstance,
|
|||||||
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::RadioButtom, &cDialogEvent), NULL, IDC_RADIO_MODE_CPU);
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::RadioButtom, &cDialogEvent), NULL, IDC_RADIO_MODE_CPU);
|
||||||
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::RadioButtom, &cDialogEvent), NULL, IDC_RADIO_MODE_GPU);
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::RadioButtom, &cDialogEvent), NULL, IDC_RADIO_MODE_GPU);
|
||||||
|
|
||||||
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::RadioButtom, &cDialogEvent), NULL, IDC_CHECK_TTA);
|
||||||
|
|
||||||
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleAndNoise, &cDialogEvent), NULL, IDC_RADIO_MODEL_RGB);
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleAndNoise, &cDialogEvent), NULL, IDC_RADIO_MODEL_RGB);
|
||||||
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleAndNoise, &cDialogEvent), NULL, IDC_RADIO_MODEL_Y);
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleAndNoise, &cDialogEvent), NULL, IDC_RADIO_MODEL_Y);
|
||||||
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleOnly, &cDialogEvent), NULL, IDC_RADIO_MODEL_PHOTO);
|
cDialog.SetCommandCallBack(SetClassFunc(DialogEvent::ModelRadioButtomScaleOnly, &cDialogEvent), NULL, IDC_RADIO_MODEL_PHOTO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user