Skip to content

Commit

Permalink
Merge pull request #34 from s-udhaya/fix-imagenet-data-loading
Browse files Browse the repository at this point in the history
fix an issue in imagenet data prep example notebook
  • Loading branch information
mshtelma authored Nov 10, 2023
2 parents 6e4941e + a116b20 commit 7598e25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/imagenet/data_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@


# copy files from source to destination
def copy_files(src_paths, dest_dir, file_pattern):
def copy_files(src_paths, dest_dir):
# process all file paths
for src_path in src_paths:
# copy source file to dest file
Expand Down Expand Up @@ -88,7 +88,7 @@ def copy_parallel(src="tmp", dest="tmp2", file_extension=".xml"):
source_dir = ""
target_dir = ""

copy_parallel(src=source_dir, dest=target_dir, file_pattern="*.xml")
copy_parallel(src=source_dir, dest=target_dir, file_extension="*.xml")

# COMMAND ----------

Expand All @@ -97,7 +97,7 @@ def copy_parallel(src="tmp", dest="tmp2", file_extension=".xml"):
source_dir = ""
target_dir = ""

copy_parallel(src=source_dir, dest=target_dir, file_pattern="*.JPEG")
copy_parallel(src=source_dir, dest=target_dir, file_extension="*.JPEG")

# COMMAND ----------

Expand Down

0 comments on commit 7598e25

Please sign in to comment.