Thank you so much to write this nice tool, which helps me a lot to convert models.
But I find it a little difficult to locate accurately where layer or operation raise KeyError, for it always print some unclear information like
return self.data[key] KeyError: 140597801526544
Yesterday I try to convert yolov4 model. It works well after running out = net.forward(input_var) in trans_net function. But it raise KeyError when i try to run print(out). I debug to find it stopped in _cat function, so i guess the point is the operation upon torch.cat. But there's too many cat so that I should expand much time to check all layer upon cat.
So can anyboy tell me what's the correct and quick way to locate problem?
Thank you so much to write this nice tool, which helps me a lot to convert models.
But I find it a little difficult to locate accurately where layer or operation raise KeyError, for it always print some unclear information like
Yesterday I try to convert yolov4 model. It works well after running
out = net.forward(input_var)
intrans_net
function. But it raise KeyError when i try to runprint(out)
. I debug to find it stopped in_cat
function, so i guess the point is the operation upon torch.cat. But there's too many cat so that I should expand much time to check all layer upon cat.So can anyboy tell me what's the correct and quick way to locate problem?