Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

```
git clone https://github.com/omerbt/Text2LIVE.git
conda create --name text2live python=3.9
conda create --name text2live python=3.9 pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge
conda activate text2live
pip install -r requirements.txt
```
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pillow
torch~=1.10.0
torchvision~=0.11.2
tqdm
numpy
ftfy
Expand Down
4 changes: 2 additions & 2 deletions train_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def train_model(config):
# set seed
seed = config["seed"]
if seed == -1:
seed = np.random.randint(2 ** 32)
seed = np.random.randint(2 ** 32, dtype=np.int64)
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
Expand Down Expand Up @@ -128,4 +128,4 @@ def save_locally(results_folder, log_data):

train_model(config)
if config["use_wandb"]:
wandb.finish()
wandb.finish()
2 changes: 1 addition & 1 deletion train_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def train_model(config):
# set seed
seed = config["seed"]
if seed == -1:
seed = np.random.randint(2 ** 32)
seed = np.random.randint(2 ** 32, dtype=np.int64)
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
Expand Down