Skip to content

Commit

Permalink
Fixed list type casting bug (#28)
Browse files Browse the repository at this point in the history
* Fixed list type casting bug

* Fromatter applied to the trainer
  • Loading branch information
sandstorm12 authored Jan 8, 2023
1 parent 7578afc commit 6b69b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video_transformers/trainer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from typing import Dict, Union
from typing import Dict, List, Union

import numpy as np
import torch
Expand Down Expand Up @@ -30,7 +30,7 @@ def __init__(
mixed_precision: str = "no",
output_dir: str = "runs",
seed: int = 42,
trackers: list[GeneralTracker] = None,
trackers: List[GeneralTracker] = None,
checkpoint_save: bool = True,
checkpoint_save_interval: int = 1,
checkpoint_save_policy: str = "epoch",
Expand Down

0 comments on commit 6b69b5e

Please sign in to comment.