diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..7de7ad1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.stylegan2-cache/ +__pycache__/ diff --git a/run_generator.py b/run_generator.py index 2f154143..339796c9 100755 --- a/run_generator.py +++ b/run_generator.py @@ -93,7 +93,7 @@ def _parse_num_range(s): range_re = re.compile(r'^(\d+)-(\d+)$') m = range_re.match(s) if m: - return range(int(m.group(1)), int(m.group(2))+1) + return list(range(int(m.group(1)), int(m.group(2))+1)) vals = s.split(',') return [int(x) for x in vals] diff --git a/run_projector.py b/run_projector.py index bf18bd73..5fd89ed7 100755 --- a/run_projector.py +++ b/run_projector.py @@ -76,7 +76,7 @@ def _parse_num_range(s): range_re = re.compile(r'^(\d+)-(\d+)$') m = range_re.match(s) if m: - return range(int(m.group(1)), int(m.group(2))+1) + return list(range(int(m.group(1)), int(m.group(2))+1)) vals = s.split(',') return [int(x) for x in vals]