MCPcopy Index your code
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / from_str

Method from_str

datastructures.py:17–21  ·  view source on GitHub ↗
(cls, str)

Source from the content-addressed store, hash-verified

15
16 @classmethod
17 def from_str(cls, str):
18 try:
19 return cls[str]
20 except KeyError:
21 return cls.Unknown
22
23 def match(self, sd_model):
24 if sd_model.is_sd1 and self == SDVersion.SD1:

Callers 1

get_lora_checkpointsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected