Necto icon indicating copy to clipboard operation
Necto copied to clipboard

Fix loading the model on non-ascii paths

Open Darxeal opened this issue 2 years ago • 0 comments

torch.jit.load(path) fails with non-ascii paths (https://github.com/pytorch/pytorch/issues/75171). Until that is fixed, the workaround is opening the file with open(path, "rb") and passing the file object to torch.jit.load instead.

Darxeal avatar May 20 '22 12:05 Darxeal