Skip to content

Commit

Permalink
cap lora_scale value between 0 and 1
Browse files Browse the repository at this point in the history
  • Loading branch information
aiXander authored Apr 15, 2024
1 parent ac239a4 commit be2651d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logos/creation_interfaces/kojii_chebel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class KojiiChebelRequest(BaseModel):


def kojii_chebel(request: KojiiChebelRequest, callback=None):
lora_scale = 0.44 + 0.52 * request.abstract
lora_scale = max(0.0, min(1.0, 0.44 + 0.52 * request.abstract))
seed = request.seed if request.seed else random.randint(0, 1000000)

if request.color == ColorType.color:
Expand Down

0 comments on commit be2651d

Please sign in to comment.