Skip to content

Commit 6707831

Browse files
authored
fix trt bug
1 parent 24c1c9a commit 6707831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hydit/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from transformers import BertModel, BertTokenizer
1616
from transformers.modeling_utils import logger as tf_logger
1717

18-
from .constants import SAMPLER_FACTORY, NEGATIVE_PROMPT
18+
from .constants import SAMPLER_FACTORY, NEGATIVE_PROMPT, TRT_MAX_WIDTH, TRT_MAX_HEIGHT, TRT_MAX_BATCH_SIZE
1919
from .diffusion.pipeline import StableDiffusionPipeline
2020
from .modules.models import HunYuanDiT, HUNYUAN_DIT_CONFIG
2121
from .modules.posemb_layers import get_2d_rotary_pos_embed, get_fill_resize_and_crop

0 commit comments

Comments
 (0)