MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / load_pt

Function load_pt

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

Source from the content-addressed store, hash-verified

458
459
460def load_pt(url: str):
461 response = requests.get(url)
462 response.raise_for_status()
463 arry = torch.load(BytesIO(response.content))
464 return arry
465
466
467def 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