Skip to content

Commit

Permalink
fixed error import in inpaint
Browse files Browse the repository at this point in the history
  • Loading branch information
R3gm authored Oct 14, 2023
1 parent f46b937 commit d39c0ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stablepy/diffusers_vanilla/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,9 @@ def __call__(
numpy_array_mask = np.array(mask_control_img, dtype=np.uint8)
array_rgb_mask = numpy_array_mask[:, :, :3]
elif not gui_active:
# Convert control image for draw
# Convert control image to draw
import base64
import matplotlib.pyplot as plt
name_without_extension = os.path.splitext(image.split("/")[-1])[0]
image64 = base64.b64encode(open(image, "rb").read())
image64 = image64.decode("utf-8")
Expand Down

0 comments on commit d39c0ca

Please sign in to comment.