Skip to content

Commit

Permalink
load captioner
Browse files Browse the repository at this point in the history
  • Loading branch information
wtomin committed Dec 24, 2024
1 parent f2e0154 commit deb5fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/opensora_pku/opensora/sample/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import time

from opensora.npu_config import npu_config
from opensora.sample.caption_refiner import OpenSoraCaptionRefiner
from opensora.utils.sample_utils import get_args, prepare_pipeline, run_model_and_save_samples

from mindone.utils.logger import set_logger
Expand Down Expand Up @@ -40,6 +39,8 @@
pipeline = prepare_pipeline(args) # build I2V/T2V pipeline

if args.caption_refiner is not None:
from opensora.sample.caption_refiner import OpenSoraCaptionRefiner

caption_refiner_model = OpenSoraCaptionRefiner(args.caption_refiner, dtype=ms.float16)
else:
caption_refiner_model = None
Expand Down

0 comments on commit deb5fd1

Please sign in to comment.