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

Function is_a_private_model

diffusers/utils/check_repo.py:283–295  ·  view source on GitHub ↗

Returns True if the model should not be in the main init.

(model)

Source from the content-addressed store, hash-verified

281
282
283def is_a_private_model(model):
284 """Returns True if the model should not be in the main init."""
285 if model in PRIVATE_MODELS:
286 return True
287
288 # Wrapper, Encoder and Decoder are all privates
289 if model.endswith("Wrapper"):
290 return True
291 if model.endswith("Encoder"):
292 return True
293 if model.endswith("Decoder"):
294 return True
295 return False
296
297
298def check_models_are_in_init():

Callers 1

check_models_are_in_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected