Skip to content

Commit

Permalink
import fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Nov 21, 2023
1 parent d74d7ed commit 4e1cd7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/save_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from omegaconf import DictConfig, OmegaConf
from sqlalchemy import exc as sa_exc
from torch.utils.data import DataLoader
from torch.utils.data.datapipes.iter import IterableWrapper
from tqdm import tqdm

from pvnet.data.datamodule import batch_to_tensor
Expand Down Expand Up @@ -80,7 +81,7 @@ def _save_batches_with_dataloader(batch_pipe, batch_dir, num_batches, dataloader

@hydra.main(config_path="../configs/", config_name="config.yaml", version_base="1.2")
def main(config: DictConfig):
"Constructs and saves validation and training batches."
"""Constructs and saves validation and training batches."""
config_dm = config.datamodule

print_config(config, resolve=False)
Expand Down
1 change: 1 addition & 0 deletions scripts/save_concurrent_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from omegaconf import DictConfig, OmegaConf
from sqlalchemy import exc as sa_exc
from torch.utils.data import DataLoader
from torch.utils.data.datapipes.iter import IterableWrapper
from tqdm import tqdm

from pvnet.data.datamodule import batch_to_tensor
Expand Down

0 comments on commit 4e1cd7b

Please sign in to comment.