if i use A100 is there a way to improve quality of inswapper and add option to add up to 4 images? ty! perhaps mix it with imageprompt #33
Unanswered
Amit30swgoh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
also i know there is an option to sharpen the face so it wont look like a makeup compare to the body on discord but not sure what to change on restortion.py or on swapper...
def parse_args():
parser = argparse.ArgumentParser(description="Face swap.")
parser.add_argument("--source_img", type=str, required=True, help="The path of source image, it can be multiple images, dir;dir2;dir3.")
parser.add_argument("--target_img", type=str, required=True, help="The path of target image.")
parser.add_argument("--output_img", type=str, required=False, default="result.png", help="The path and filename of output image.")
parser.add_argument("--source_indexes", type=str, required=False, default="-1", help="Comma separated list of the face indexes to use (left to right) in the source image, starting at 0 (-1 uses all faces in the source image")
parser.add_argument("--target_indexes", type=str, required=False, default="-1", help="Comma separated list of the face indexes to swap (left to right) in the target image, starting at 0 (-1 swaps all faces in the target image")
parser.add_argument("--face_restore", action="store_true", help="The flag for face restoration.")
parser.add_argument("--background_enhance", action="store_true", help="The flag for background enhancement.")
parser.add_argument("--face_upsample", action="store_true", help="The flag for face upsample.")
parser.add_argument("--upscale", type=int, default=2, help="The upscale value, up to 4.")
parser.add_argument("--codeformer_fidelity", type=float, default=0.5, help="The codeformer fidelity.")
args = parser.parse_args()
return args
btw bro i sent you friend request via Discord Ash :)
Beta Was this translation helpful? Give feedback.
All reactions