Better error handling for DAIN OOM

This commit is contained in:
N00MKRAD
2021-01-21 11:50:31 +01:00
parent d255ebbd4b
commit 55d13a3458

View File

@@ -294,7 +294,8 @@ namespace Flowframes
if (!hasShownError && (line.Contains("vkQueueSubmit failed") || line.Contains("vkAllocateMemory failed")))
{
hasShownError = true;
InterpolateUtils.ShowMessage($"A Vulkan error occured during interpolation!\n\n{line}", "Error");
string dain = (Interpolate.current.ai.aiName == Networks.dainNcnn.aiName) ? "\n\nTry reducing the tile size in the AI settings." : "";
InterpolateUtils.ShowMessage($"A Vulkan error occured during interpolation!\n\n{line}{dain}", "Error");
}
if (!hasShownError && line.Contains("invalid gpu device"))