Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages