You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline: Diffusion pipeline, usually available under self.ldm.
loras: JSON string with key-value pairs, where the key is the repository to load LoRas from and the value is the strength (float with a minimum value of 0.0) to assign to the LoRa.
"""
# No LoRas to load
ifrequested_loras==""orrequested_loras==None:
return;
# Parse LoRas param as JSON to extract key-value pairs
loras=json.loads(requested_loras)
# Build a list of adapter names and their requested strength