openai / consistency_models

Official repo for consistency models.
MIT License
6.02k stars 409 forks source link

Corrected RuntimeError in the Sample Code in README.md #43

Closed take2rohit closed 10 months ago

take2rohit commented 11 months ago

The previous version of code shows that it takes class_labels=145 as argument for pipe(). However this throws the below error.
"RuntimeError: Expected tensor for argument # 1 'indices' to have scalar type Long; but got torch.IntTensor instead (while checking arguments for embedding)"

We must pass a tensor with Long data type.

This resolves #44