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

Method write_json

model_manager.py:155–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.write_json()
154
155 def write_json(self):
156 with open(self.model_file, "w") as f:
157 json.dump(self.all_models, f, indent=4, cls=ModelConfigEncoder)
158
159 def read_json(self, encode_config=True):
160 with open(self.model_file, "r") as f:

Callers 3

updateMethod · 0.95
add_entryMethod · 0.95
add_lora_entryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected