Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/inference_animesr_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def main():
# the input format can be:
# 1. clip folder which contains frames
# or 2. a folder which contains several clips
first_level_dir = len(glob.glob(osp.join(args.input, '*.png'))) > 0
img_types = ['*.png', '*.jpg', '*.jpeg', '*.bmp']
first_level_dir = False
for img_type in img_types:
first_level_dir = first_level_dir or len(glob.glob(osp.join(args.input, img_type))) > 0 or len(glob.glob(osp.join(args.input, img_type.upper()))) > 0
if args.input.endswith('/'):
args.input = args.input[:-1]
if first_level_dir:
Expand Down