Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

slice-image argument parsing bug: "num_tiles: invalid int value: ..." #13

Open
ArniDagur opened this issue Nov 14, 2018 · 0 comments
Open

Comments

@ArniDagur
Copy link

The command slice-image --dir slices *.jpg 9 results in:

usage: slice-image [-d DIR] [-f FORMAT] [-h] [-v] image num_tiles
slice-image: error: argument num_tiles: invalid int value: '0012tQn.jpg'

I tried making a shell script to avoid using glob:

find $(pwd) -maxdepth 1 -type f -name '*.png' -o -name '*.jpg' |
while read filename; do
    slice-image --output slices/ $filename 9 +
done

But I still get the same error:

usage: slice-image [-d DIR] [-f FORMAT] [-h] [-v] image num_tiles
slice-image: error: argument num_tiles: invalid int value: '/home/arni/colorize/DeOldify/training_images/006HsNn.jpg'
usage: slice-image [-d DIR] [-f FORMAT] [-h] [-v] image num_tiles
slice-image: error: argument num_tiles: invalid int value: '/home/arni/colorize/DeOldify/training_images/022SLOl.jpg'
usage: slice-image [-d DIR] [-f FORMAT] [-h] [-v] image num_tiles
slice-image: error: argument num_tiles: invalid int value: '/home/arni/colorize/DeOldify/training_images/234UW9T.jpg'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant