mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
added sort by absdiff
This is sort method by absolute per pixel difference between all faces. options: Sort by similar? ( y/n ?:help skip:y ) : if you choose 'n', then most dissimilar faces will be placed first.
This commit is contained in:
parent
e8673e3fcc
commit
d4745b5cf8
2 changed files with 87 additions and 5 deletions
4
main.py
4
main.py
|
@ -112,7 +112,7 @@ if __name__ == "__main__":
|
|||
|
||||
p = subparsers.add_parser( "sort", help="Sort faces in a directory.")
|
||||
p.add_argument('--input-dir', required=True, action=fixPathAction, dest="input_dir", help="Input directory. A directory containing the files you wish to process.")
|
||||
p.add_argument('--by', required=True, dest="sort_by_method", choices=("blur", "face", "face-dissim", "face-yaw", "face-pitch", "hist", "hist-dissim", "brightness", "hue", "black", "origname", "oneface", "final", "final-no-blur", "vggface", "test"), help="Method of sorting. 'origname' sort by original filename to recover original sequence." )
|
||||
p.add_argument('--by', required=True, dest="sort_by_method", choices=("blur", "face", "face-dissim", "face-yaw", "face-pitch", "hist", "hist-dissim", "brightness", "hue", "black", "origname", "oneface", "final", "final-no-blur", "vggface", "absdiff", "test"), help="Method of sorting. 'origname' sort by original filename to recover original sequence." )
|
||||
p.set_defaults (func=process_sort)
|
||||
|
||||
def process_util(arguments):
|
||||
|
@ -274,10 +274,12 @@ if __name__ == "__main__":
|
|||
p.set_defaults(func=process_labelingtool_edit_mask)
|
||||
|
||||
def process_relight_faceset(arguments):
|
||||
os_utils.set_process_lowest_prio()
|
||||
from mainscripts import FacesetRelighter
|
||||
FacesetRelighter.relight (arguments.input_dir, arguments.lighten, arguments.random_one)
|
||||
|
||||
def process_delete_relighted(arguments):
|
||||
os_utils.set_process_lowest_prio()
|
||||
from mainscripts import FacesetRelighter
|
||||
FacesetRelighter.delete_relighted (arguments.input_dir)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue