For compatibility

This commit is contained in:
hzwer 2021-02-27 17:34:20 +08:00
parent d1c53c428a
commit 3663ef1137
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ parser.add_argument('--ext', dest='ext', type=str, default='mp4', help='vid_out
parser.add_argument('--exp', dest='exp', type=int, default=1)
args = parser.parse_args()
assert (not args.video is None or not args.img is None)
if args.UHD and args.scale==1.0:
args.scale = 0.5
assert args.scale in [0.25, 0.5, 1.0, 2.0, 4.0]
if not args.img is None:
args.png = True