Hypernetwork-MonkeyPatch-Extension
Hypernetwork-MonkeyPatch-Extension copied to clipboard
Fix unbound local error.
Fixes UnboundLocalError: local variable 'hypernetwork' referenced before assignment
error in finally block if the code in the try-catch raises an exception before hypernetwork
has been set.
Good catch, but its real problem is in train_hypernetwork_external(*args)
part, do you have any error log related to it?
Usually when it throws error, UnboundLocalError is not really important error, its giving you minor stack trace(...)
Oh yeah thanks for asking! I actually already figured the real error out (I specified the wrong template path so it crashed). The extra error on the undefined variable threw me off at first though so hoping this fix might help someone else.