From 26f220b443ff14338e412f76edfb11b1eca46740 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 8 Apr 2025 23:45:31 +0000 Subject: [PATCH] [F] Fix w and h --- hdi1/nf4.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hdi1/nf4.py b/hdi1/nf4.py index 2e05c99..bdf90cc 100644 --- a/hdi1/nf4.py +++ b/hdi1/nf4.py @@ -86,7 +86,7 @@ def generate_image(pipe: HiDreamImagePipeline, model_type: str, prompt: str, res num_inference_steps = config["num_inference_steps"] # Parse resolution - height, width = resolution + width, height = resolution # Handle seed if seed == -1: diff --git a/pyproject.toml b/pyproject.toml index aa03dfd..141155b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hdi1" -version = "1.0.2" +version = "1.0.3" description = "HiDream-I1 is a new open-source image generative foundation model with 17B parameters that achieves state-of-the-art image generation quality within seconds." readme = "README.md" requires-python = ">=3.10"