[PR #227] [MERGED] fix utf8 username on windows #472

Closed
opened 2026-10-31 21:15:20 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openai/CLIP/pull/227
Author: @liuxingbaoyu
Created: 4/4/2022
Status: ✅ Merged
Merged: 4/10/2022
Merged by: @jongwook

Base: main ← Head: fix-utf8-path


📝 Commits (1)

  • 550b3bc fix utf8 username on windows

📊 Changes

1 file changed (+11 additions, -10 deletions)

View changed files

📝 clip/clip.py (+11 -10)

📄 Description

'C:\\Users\\流星暴雨/.cache/clip\\ViT-B-16.pt'

pytorch has a bug
Models are downloaded to the user directory by default.
torch.jit.load fails if windows username contains non-ascii characters
raise NotImplementedError

fixes: #206


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openai/CLIP/pull/227 **Author:** [@liuxingbaoyu](https://github.com/liuxingbaoyu) **Created:** 4/4/2022 **Status:** ✅ Merged **Merged:** 4/10/2022 **Merged by:** [@jongwook](https://github.com/jongwook) **Base:** `main` ← **Head:** `fix-utf8-path` --- ### 📝 Commits (1) - [`550b3bc`](https://github.com/openai/CLIP/commit/550b3bc3321052d9a345cd1cbd911e76cf5e8c49) fix utf8 username on windows ### 📊 Changes **1 file changed** (+11 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `clip/clip.py` (+11 -10) </details> ### 📄 Description `'C:\\Users\\流星暴雨/.cache/clip\\ViT-B-16.pt'` pytorch has a bug Models are downloaded to the user directory by default. `torch.jit.load` fails if windows username contains non-ascii characters raise NotImplementedError fixes: #206 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 21:15:20 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#472
No description provided.