Spaces:
Runtime error
Runtime error
Zhouyan248
commited on
Commit
·
a0949d0
1
Parent(s):
742d2fe
Update base/text_to_video/__init__.py
Browse files
base/text_to_video/__init__.py
CHANGED
@@ -10,7 +10,7 @@ from diffusers.schedulers import DDIMScheduler, DDPMScheduler, PNDMScheduler, Eu
|
|
10 |
from diffusers.models import AutoencoderKL
|
11 |
from transformers import CLIPTokenizer, CLIPTextModel, CLIPTextModelWithProjection
|
12 |
from omegaconf import OmegaConf
|
13 |
-
|
14 |
import os, sys
|
15 |
sys.path.append(os.path.split(sys.path[0])[0])
|
16 |
from models import get_models
|
@@ -39,7 +39,8 @@ def model_t2v_fun(args):
|
|
39 |
return VideoGenPipeline(vae=vae, text_encoder=text_encoder_one, tokenizer=tokenizer_one, scheduler=scheduler, unet=unet)
|
40 |
|
41 |
def setup_seed(seed):
|
42 |
-
torch.manual_seed(seed)
|
43 |
-
torch.cuda.manual_seed_all(seed)
|
|
|
44 |
|
45 |
|
|
|
10 |
from diffusers.models import AutoencoderKL
|
11 |
from transformers import CLIPTokenizer, CLIPTextModel, CLIPTextModelWithProjection
|
12 |
from omegaconf import OmegaConf
|
13 |
+
import random
|
14 |
import os, sys
|
15 |
sys.path.append(os.path.split(sys.path[0])[0])
|
16 |
from models import get_models
|
|
|
39 |
return VideoGenPipeline(vae=vae, text_encoder=text_encoder_one, tokenizer=tokenizer_one, scheduler=scheduler, unet=unet)
|
40 |
|
41 |
def setup_seed(seed):
|
42 |
+
# torch.manual_seed(seed)
|
43 |
+
# torch.cuda.manual_seed_all(seed)
|
44 |
+
random.seed(seed)
|
45 |
|
46 |
|