rain1011 commited on
Commit
9de3425
·
1 Parent(s): 81c66d9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -279,8 +279,9 @@ import torch.nn as nn
279
  from models import build_model
280
  from PIL import Image
281
 
282
- random.seed(42)
283
- torch.manual_seed(42)
 
284
 
285
  # The local directory you save the LaVIT pre-trained weight,
286
  # it will automatically download the checkpoint from huggingface
@@ -320,10 +321,15 @@ For the Image generation, the Classifier-Free Guidance scale is important. A lar
320
  ```python
321
  import os
322
  import torch
 
323
  import torch.nn as nn
324
  from models import build_model
325
  from PIL import Image
326
 
 
 
 
 
327
  # The local directory you save the LaVIT pre-trained weight,
328
  # it will automatically download the checkpoint from huggingface
329
  model_path = '/path/LaVIT_weight'
 
279
  from models import build_model
280
  from PIL import Image
281
 
282
+ seed = 1234
283
+ random.seed(seed)
284
+ torch.manual_seed(seed)
285
 
286
  # The local directory you save the LaVIT pre-trained weight,
287
  # it will automatically download the checkpoint from huggingface
 
321
  ```python
322
  import os
323
  import torch
324
+ import random
325
  import torch.nn as nn
326
  from models import build_model
327
  from PIL import Image
328
 
329
+ seed = 1234
330
+ random.seed(seed)
331
+ torch.manual_seed(seed)
332
+
333
  # The local directory you save the LaVIT pre-trained weight,
334
  # it will automatically download the checkpoint from huggingface
335
  model_path = '/path/LaVIT_weight'