MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / download_image

Function download_image

train_single.py:832–838  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

830
831
832def download_image(url):
833 original_image = (
834 lambda image_url_or_path: load_image(image_url_or_path)
835 if urlparse(image_url_or_path).scheme
836 else PIL.Image.open(image_url_or_path).convert("RGB")
837 )(url)
838 return original_image
839
840
841# This is for training using deepspeed.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected