MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / load_pt

Function load_pt

src/diffusers/utils/testing_utils.py:362–366  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

360
361
362def load_pt(url: str):
363 response = requests.get(url)
364 response.raise_for_status()
365 arry = torch.load(BytesIO(response.content))
366 return arry
367
368
369def load_image(image: Union[str, PIL.Image.Image]) -> PIL.Image.Image:

Callers 3

test_full_modelMethod · 0.90

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected