@@ -51,6 +51,7 @@ parser.add_argument("--no-half", action='store_true', help="do not switch the mo
parser.add_argument("--no-progressbar-hiding",action='store_true',help="do not hide progressbar in gradio UI (we hide it because it slows down ML if you have hardware accleration in browser)")
parser.add_argument("--max-batch-count",type=int,default=16,help="maximum batch count value for the UI")
parser.add_argument("--grid-format",type=str,default='png',help="file format for saved grids; can be png or jpg")
parser.add_argument("--inversion",action='store_true',help="switch to stable inversion version; allows for uploading embeddings; this option should be used only with textual inversion repo")
opt=parser.parse_args()
GFPGAN_dir=opt.gfpgan_dir
...
...
@@ -151,8 +152,8 @@ if os.path.exists(GFPGAN_dir):