MCPcopy Index your code
hub / github.com/huggingface/diffusers / parse_list

Function parse_list

scripts/convert_if.py:703–712  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

701
702
703def parse_list(value):
704 if isinstance(value, str):
705 value = value.split(",")
706 value = [int(v) for v in value]
707 elif isinstance(value, list):
708 pass
709 else:
710 raise ValueError(f"Can't parse list for type: {type(value)}")
711
712 return value
713
714
715# below is copy and pasted from original convert_if_stage_2.py script

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…