Skip to content

Commit

Permalink
more err handling for incompatible interps
Browse files Browse the repository at this point in the history
  • Loading branch information
N00MKRAD committed Dec 14, 2020
1 parent db32484 commit cd9c5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/OS/ESRGAN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private static void OutputHandler(object sendingProcess, DataReceivedEventArgs o
if (data.Contains("UnpicklingError"))
Program.ShowMessage("Failed to load model!", "Error");

if (PreviewUI.currentMode == PreviewUI.Mode.Interp && data.Contains("must match the size of tensor b"))
if (PreviewUI.currentMode == PreviewUI.Mode.Interp && (data.Contains("must match the size of tensor b") || data.Contains("KeyError: 'model.")))
Program.ShowMessage("It seems like you tried to interpolate incompatible models!", "Error");
}

Expand Down

0 comments on commit cd9c5a3

Please sign in to comment.