Skip to content

Commit

Permalink
Revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Aug 24, 2022
1 parent 7826466 commit cee101f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zamba/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def check_files_exist_and_load(
pd.DataFrame: DataFrame with valid and loadable videos.
"""
# update filepath column to prepend data_dir
# NOTE: A previous version of this resolved all paths to absolute, but that breaks caching.
df["filepath"] = str(data_dir) / df.filepath.path

# we can have multiple rows per file with labels so limit just to one row per file for these checks
Expand Down Expand Up @@ -356,7 +355,7 @@ class TrainConfig(ZambaBaseModel):
"""

labels: Union[FilePath, pd.DataFrame]
data_dir: Optional[DirectoryPath] = ""
data_dir: DirectoryPath = ""
checkpoint: Optional[FilePath] = None
scheduler_config: Optional[Union[str, SchedulerConfig]] = "default"
model_name: Optional[ModelEnum] = ModelEnum.time_distributed
Expand Down

0 comments on commit cee101f

Please sign in to comment.