MCPcopy Index your code
hub / github.com/RUSH-LAB/LSH_Memory / write_datafiles

Function write_datafiles

data_utils.py:63–113  ·  view source on GitHub ↗

Load and preprocess images from a directory and write them to a file. Args: directory: Directory of alphabet sub-directories. write_file: Filename to write to. resize: Whether to resize the images. rotate: Whether to augment the dataset with rotations. new_width: New resize wi

(directory, write_file,
                    resize=True, rotate=False,
                    new_width=IMAGE_NEW_SIZE, new_height=IMAGE_NEW_SIZE,
                    first_label=0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

preprocess_omniglotFunction · 0.85

Calls 2

crawl_directoryFunction · 0.85
resize_imagesFunction · 0.85

Tested by

no test coverage detected