ess icon indicating copy to clipboard operation
ess copied to clipboard

how to load dict model as .pt file ?

Open 5221029 opened this issue 1 year ago • 0 comments

Hello, I downloaded some files (DDD17 UDA , DSEC UDA as .pt file) from you. The files are in the form of a dictionary. How can I convert this dictionary into the original model so that I can get output from it?

here is my code and error : model= torch.load(r'C:\Users\ehnza\Downloads\DSEC_Semantic_UDA.pt', map_location=torch.device('cpu')) model('x.jpeg')

Error : TypeError: 'dict' object is not callable

I know why this is happening, but I don't know how to convert it to the original file

5221029 avatar May 07 '24 14:05 5221029