Skip to content

Commit 9273494

Browse files
committed
Improved exception handling for DLC networks
1 parent fa016c1 commit 9273494

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ def execute(self, context):
553553

554554
except:
555555
print("Failed to load trained network... Check your model path!")
556+
# remove dlc processor to attempt to re-initialise the network after user applies corrections
557+
del dlc_proc
556558
return {"FINISHED"}
557559
else:
558560
print("Initialised DLC Network found!")

0 commit comments

Comments
 (0)