when I run this code on google colab. The following error occur. Please help me.
if cuda:
state_dic=torch.load(model_path[0])
encoder.load_state_dict(state_dic)
state_dic2=torch.load(model_path[1])
decoder.load_state_dict(state_dic2)
AttributeError: ‘list’ object has no attribute ‘seek’. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
Iam also having same issue while loading my network. I understand that model path is returning a list instead of file path or a buffer. can you suggest possible reasons or solutions for this?