Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dyabel committed Aug 6, 2022
1 parent 14e859d commit c3bdf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def train_model(cfg, local_rank, distributed, seed=214):
np.random.seed(local_seed)
random.seed(local_seed)
#TODO
"""
# """
g = torch.Generator()
g.manual_seed(local_seed)
torch.backends.cudnn.benchmark = False
torch.backends.cudnn.deterministic=True
"""
# """
model = build_zsl_pipeline(cfg)
device = torch.device(cfg.MODEL.DEVICE)
model = model.to(device)
Expand Down

0 comments on commit c3bdf85

Please sign in to comment.