Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Handle cliptokenizer.onnx in Stable Diffusion sample #34

Open
nmetulev opened this issue Nov 25, 2024 · 4 comments
Open

[FEATURE] Handle cliptokenizer.onnx in Stable Diffusion sample #34

nmetulev opened this issue Nov 25, 2024 · 4 comments

Comments

@nmetulev
Copy link
Member

Describe the bug
There is no way to get the cliptokenzier.onnx that is used by the Stable Diffusion sample other than exporting the entire project

@nmetulev nmetulev changed the title [BUG] Handle cliptokenizer.onnx in Stable Diffusion sample [FEATURE] Handle cliptokenizer.onnx in Stable Diffusion sample Nov 25, 2024
@luisquintanilla
Copy link
Member

@nmetulev would having an implementation in Microosft.ML.Tokenizers help here?

@nmetulev
Copy link
Member Author

100%. Right now, we depend on an cliptokenizer.onnx model which complicates the implementation.

@luisquintanilla
Copy link
Member

Great! We're tracking that here.

dotnet/machinelearning#6993

@luisquintanilla
Copy link
Member

In the meantime though, if you wanted a C# implementation, this might work for your scenario.

https://github.com/LittleLittleCloud/Torchsharp-stable-diffusion-2/blob/main/Tokenizer.cs

cc: @LittleLittleCloud to confirm this is all that's needed for tokenization of Stable Diffusion.

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

No branches or pull requests

3 participants