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

Fix TypeError: 'ResourceRequest' object is not subscriptable #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

soudasuwa
Copy link

Fix: #31

@soudasuwa
Copy link
Author

I am new to Stable Diffusion nor an expert in python so correct me if I am wrong.

If I understand correctly a class ResourceRequest(BaseModel) is used only for typing, therefore a variable resource in def fetch_model_by_hash(hash: str) must be initialized to a dict instead of ResourceRequest.

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.

auto download model failed
1 participant