mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
GUIでデフォルトのモデルを指定するようにした
This commit is contained in:
parent
d1ba0f1105
commit
6e80372099
@ -1896,7 +1896,7 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
|
|||||||
tmp[_countof(tmp) - 1] = TEXT('\0');
|
tmp[_countof(tmp) - 1] = TEXT('\0');
|
||||||
tprcess = tmp;
|
tprcess = tmp;
|
||||||
|
|
||||||
modelType = (eModelType)GetPrivateProfileInt(TEXT("Setting"), TEXT("LastModel"), 0, getTString(SettingFilePath).c_str());
|
modelType = (eModelType)GetPrivateProfileInt(TEXT("Setting"), TEXT("LastModel"), DefaultModel, getTString(SettingFilePath).c_str());
|
||||||
|
|
||||||
use_tta = GetPrivateProfileInt(TEXT("Setting"), TEXT("LastUseTTA"), 0, getTString(SettingFilePath).c_str()) != 0;
|
use_tta = GetPrivateProfileInt(TEXT("Setting"), TEXT("LastUseTTA"), 0, getTString(SettingFilePath).c_str()) != 0;
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ enum eModelType
|
|||||||
eModelTypeEnd,
|
eModelTypeEnd,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const int DefaultModel = eModelTypeCunet;
|
||||||
|
|
||||||
const tstring ModelPathList[eModelTypeEnd] = {
|
const tstring ModelPathList[eModelTypeEnd] = {
|
||||||
TEXT("models/upconv_7_anime_style_art_rgb"),
|
TEXT("models/upconv_7_anime_style_art_rgb"),
|
||||||
TEXT("models/upconv_7_photo"),
|
TEXT("models/upconv_7_photo"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user