Skip to content

Commit

Permalink
fix: some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishKumar4 committed Aug 2, 2024
1 parent 77e90de commit 25448cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions training.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def __repr__(self):
def data_source_tfds(name, use_tf=True, split="all"):
import tensorflow_datasets as tfds
if use_tf:
def data_source():
def data_source(path_override):
return tfds.load(name, split=split, shuffle_files=True)
else:
def data_source():
def data_source(path_override):
return tfds.data_source(name, split=split, try_gcs=False)
return data_source

Expand Down Expand Up @@ -874,7 +874,7 @@ def main(args):
IMAGE_SIZE = args.image_size

dataset_name = args.dataset
datalen = len(datasetMap[dataset_name]['source']())
datalen = len(datasetMap[dataset_name]['source'](args.dataset_path))
batches = datalen // BATCH_SIZE
# Define the configuration using the command-line arguments
attention_configs = [
Expand Down

0 comments on commit 25448cf

Please sign in to comment.