Skip to content

Fix loading the model on non-ascii paths#11

Open
Darxeal wants to merge 1 commit intoRolv-Arild:masterfrom
Darxeal:patch-1
Open

Fix loading the model on non-ascii paths#11
Darxeal wants to merge 1 commit intoRolv-Arild:masterfrom
Darxeal:patch-1

Conversation

@Darxeal
Copy link
Copy Markdown

@Darxeal Darxeal commented May 20, 2022

torch.jit.load(path) fails with non-ascii paths (pytorch/pytorch#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant