mirror of
https://github.com/Haoming02/sd-webui-old-photo-restoration.git
synced 2026-01-26 19:29:52 +00:00
commit cd7a9c103d1ea981ecd236d4e9111fd3c1cd6c2b Author: Haoming <hmstudy02@gmail.com> Date: Tue Dec 19 11:33:44 2023 +0800 add README commit 30127cbb2a8e5f461c540729dc7ad457f66eb94c Author: Haoming <hmstudy02@gmail.com> Date: Tue Dec 19 11:12:16 2023 +0800 fix Face Enhancement distortion commit 6d52de5368c6cfbd9342465b5238725c186e00b9 Author: Haoming <hmstudy02@gmail.com> Date: Mon Dec 18 18:27:25 2023 +0800 better? args handling commit 0d1938b59eb77a038ee0a91a66b07fb9d7b3d6d4 Author: Haoming <hmstudy02@gmail.com> Date: Mon Dec 18 17:40:19 2023 +0800 bug fix related to Scratch commit 8315cd05ffeb2d651b4c57d70bf04b413ca8901d Author: Haoming <hmstudy02@gmail.com> Date: Mon Dec 18 17:24:52 2023 +0800 implement step 2 ~ 4 commit a5feb04b3980bdd80c6b012a94c743ba48cdfe39 Author: Haoming <hmstudy02@gmail.com> Date: Mon Dec 18 11:55:20 2023 +0800 process scratch commit3b18f7b042Author: Haoming <hmstudy02@gmail.com> Date: Wed Dec 13 11:57:20 2023 +0800 "init" commitd0148e0e82Author: Haoming <hmstudy02@gmail.com> Date: Wed Dec 13 10:34:39 2023 +0800 clone repo
27 lines
968 B
Python
27 lines
968 B
Python
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
from .base_options import BaseOptions
|
|
|
|
|
|
class TestOptions(BaseOptions):
|
|
def initialize(self, parser):
|
|
BaseOptions.initialize(self, parser)
|
|
parser.add_argument("--results_dir", type=str, default="./results/", help="saves results here.")
|
|
parser.add_argument(
|
|
"--which_epoch",
|
|
type=str,
|
|
default="latest",
|
|
help="which epoch to load? set to latest to use latest cached model",
|
|
)
|
|
parser.add_argument("--how_many", type=int, default=float("inf"), help="how many test images to run")
|
|
|
|
parser.set_defaults(
|
|
preprocess_mode="scale_width_and_crop", crop_size=256, load_size=256, display_winsize=256
|
|
)
|
|
parser.set_defaults(serial_batches=True)
|
|
parser.set_defaults(no_flip=True)
|
|
parser.set_defaults(phase="test")
|
|
self.isTrain = False
|
|
return parser
|