We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ce224c + 0781663 commit c508af3Copy full SHA for c508af3
eval_voc.py
@@ -37,14 +37,14 @@ def __init__(
37
38
self.__load_model_weights(weight_path)
39
40
- self.__evalter = Evaluator(self.__model, showatt=self.showatt)
+ self.__evalter = Evaluator(self.__model, showatt=self.__showatt)
41
42
def __load_model_weights(self, weight_path):
43
print("loading weight file from : {}".format(weight_path))
44
45
weight = os.path.join(weight_path)
46
chkpt = torch.load(weight, map_location=self.__device)
47
- self.__model.load_state_dict(chkpt)
+ self.__model.load_state_dict(chkpt["model"])
48
print("loading weight file is done")
49
del chkpt
50
0 commit comments