INNER CODE UNIT · Python
_initialize_weights_map
fofr/cog-face-to-sticker · weights_manifest.py:79
def _initialize_weights_map(self):
weights_map = {}
for key in self.weights_manifest.keys():
if key.isupper():
weights_map.update(
self._generate_weights_map(self.weights_manifest[key], key.lower())
)
weights_map.update(ComfyUI_Controlnet_Aux.weights_map(BASE_URL))
weights_map.update(ComfyUI_BRIA_AI_RMBG.weights_map(BASE_URL))
print("Allowed weights:")
for weight in weights_map.keys():
print(weight)
return weights_map
def non_commercial_weights(self):
return [