Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
ccssu committed Aug 5, 2024
1 parent 0083d96 commit 2c006eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def INPUT_TYPES(s):
return {
"required": {
"unet_name": (folder_paths.get_filename_list("unet"),),
"weight_dtype": (["fp8_e4m3fn"],),
"weight_dtype": (["default"],),
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/bizyair/configs/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"Kolors.safetensors"
],
"flux": [
"flux1-schnell.sft"
"flux1-schnell.sft",
"flux1-dev.sft"
]
},
"vae": {
Expand All @@ -60,6 +61,6 @@
},
"clip":[
"clip_l.safetensors",
"t5xxl_fp8_e4m3fn.safetensors"
"t5xxl_fp16.safetensors"
]
}
10 changes: 7 additions & 3 deletions src/bizyair/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ def send_request(
raise RuntimeError(
f'Unexpected error accessing result["data"]["payload"]. Result: {result}'
) from e

real_out = decode_data(out)
return real_out[0]
try:
real_out = decode_data(out)
return real_out[0]
except Exception as e:
raise RuntimeError(
f"Exception: {e=} {self._short_repr(out, max_length=100)}"
) from e


def convert_image_to_rgb(image: Image.Image) -> Image.Image:
Expand Down

0 comments on commit 2c006eb

Please sign in to comment.