zhm-real / PathPlanning

Common used path planning algorithms with animations.

Home Page:https://github.com/zhm-real/PathPlanning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using smbclient to load PyTorch model weights from a server, but I encountered some issues.

QingshuiL opened this issue · comments

I tried using smbclient to load PyTorch model weights from a server, but I encountered some issues.

file_path = r"\\x.x.x.x\home\pytorch-models\resnet18-f37072fd.pth"
with smbclient.open_file(file_path, mode='rb', buffering=0) as fd:
    data = torch.load(fd, map_location=torch.device('cpu'))

The error

Exception has occurred: RuntimeError
PytorchStreamReader failed reading file data/140219036705280: file read failed

Is there any way I can load model weights?