face-crop-plus icon indicating copy to clipboard operation
face-crop-plus copied to clipboard

Future Ideas

Open mantasu opened this issue 5 months ago • 0 comments

Some ideas for new features:

  • Allow variable face factor
  • Allow processing a single file with an option to show the processed image (only require matplotlib or ipykernel display if this feature is used)
  • Add on_file fn to allow filtering specific images
  • Allow passing a directory of landmarks and allow on_landmarks_file_fn to for custom loading
  • Make it more convenient to process files when full paths are known to them
  • Add create_splits utility that splits the images based on val_frac and test_frac or reads the file that specifies the splits or multiple files (one for each split) or just accepts 1-3 sets with file names
  • Also add a feature to pass a directory of directories or a list of directories, e.g., we may want to process images in train/val/test subfolders
  • Create Base Dir/Image Processor and make Cropper extend it with its cropping functionalities
  • Try to center the image based on the center of mass of the landmarks instead of the nose (as what it seems to be doing now?), for instance when people look sideways, their noses are typically in the middle but not the rest of the fice is biased toward either left or right side of the image
  • New Module: normalizer/standardized + format changer to pkl/dat (or any other) (could save numpy or tensor)

For example: make it more convenient to process datasets where all the files are inside a single folder: Face Synthetics

mantasu avatar Feb 02 '24 01:02 mantasu