Skip to content

aiXander/ImageManipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

ImageManipulation

A collection of various scripts for image manipulation Required libraries: torch, PIL, cv2, numpy

1. sort_visual_path.py

  • grabs all images from a directory
  • applies the best fitting common crop to all the images
  • computes all pairwise perceptual distances using lpips
  • re-orders all the images using tsp-solver (Traveling Salesman)
  • saves resulting trajectory to the subdirectory input_dir/reordered

usage example:

python sort_visual_path.py /path/to/img_dir

About

various scripts for image manipulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages