Skip to content

Commit

Permalink
ADD: skip download option
Browse files Browse the repository at this point in the history
  • Loading branch information
matbun committed Nov 9, 2023
1 parent 3bcc410 commit be0c115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions use-cases/3dgan/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def __init__(
self.data_url = data_url

def load(self):
if self.data_path is None:
print("Data path is None. Skipping dataset downloading")
return

# Download data
if not os.path.exists(self.data_path):
gdown.download_folder(
Expand Down
2 changes: 1 addition & 1 deletion use-cases/3dgan/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ executor:
steps:
- class_path: dataloader.Lightning3DGANDownloader
init_args:
data_path: exp_data/
data_path: exp_data/ # Set to null to skip dataset download
data_url: https://drive.google.com/drive/folders/1uPpz0tquokepptIfJenTzGpiENfo2xRX

- class_path: trainer.Lightning3DGANTrainer
Expand Down

0 comments on commit be0c115

Please sign in to comment.