Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/BrushNet
/ from_pretrained
Method
from_pretrained
src/diffusers/utils/dummy_pt_objects.py:211–212 ·
view source on GitHub ↗
(cls, *args, **kwargs)
Source
from the content-addressed store, hash-verified
209
210
@classmethod
211
def
from_pretrained(cls, *args, **kwargs):
212
requires_backends(cls, [
"torch"
])
213
214
215
class
Transformer2DModel(metaclass=DummyObject):
Callers
nothing calls this directly
Calls
1
requires_backends
Function · 0.85
Tested by
no test coverage detected