mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-25 02:38:10 +00:00
fix cogvideo height width checker
This commit is contained in:
@@ -13,7 +13,7 @@ from einops import rearrange
|
|||||||
class CogVideoPipeline(BasePipeline):
|
class CogVideoPipeline(BasePipeline):
|
||||||
|
|
||||||
def __init__(self, device="cuda", torch_dtype=torch.float16):
|
def __init__(self, device="cuda", torch_dtype=torch.float16):
|
||||||
super().__init__(device=device, torch_dtype=torch_dtype)
|
super().__init__(device=device, torch_dtype=torch_dtype, height_division_factor=16, width_division_factor=16)
|
||||||
self.scheduler = EnhancedDDIMScheduler(rescale_zero_terminal_snr=True, prediction_type="v_prediction")
|
self.scheduler = EnhancedDDIMScheduler(rescale_zero_terminal_snr=True, prediction_type="v_prediction")
|
||||||
self.prompter = CogPrompter()
|
self.prompter = CogPrompter()
|
||||||
# models
|
# models
|
||||||
|
|||||||
Reference in New Issue
Block a user