Skip to content

Instantly share code, notes, and snippets.

View AnBucquet's full-sized avatar

BUCQUET Anthime AnBucquet

View GitHub Profile
@jbdrvl
jbdrvl / convert-save.py
Last active January 15, 2019 12:26
For a project - takes pics in a folder, resizes them and saves them into another folder
#!/usr/bin/env python3
#!/usr/bin/env python
"""
A script designed to
1) resize all of the downloaded images to desired dimension (DEFAULT 64x64 pixels) and
2) rename images in folders from 1.png to n.png for ease of use in training
Modified version from https://github.com/rkjones4/GANGogh/blob/master/misc/picStuff.py
"""