diff --git a/README.rst b/README.rst index 16da822..b955900 100644 --- a/README.rst +++ b/README.rst @@ -110,7 +110,7 @@ Installation & Setup This project requires Python 3.4+ and you'll also need ``numpy`` and ``scipy`` (numerical computing libraries) as well as ``python3-dev`` installed system-wide. If you want more detailed instructions, follow these: -0. Use Pre-Installed `Docker Container `_ or `Amazon Image `_ (beginner). +0. Use Prepared `Docker Container `_ or `Amazon Image `_ **(beginner)** 1. `Linux Installation of Lasagne `_ **(recommended)** 2. `Mac OSX Installation of Lasagne `_ **(intermediate)** 3. `Windows Installation of Lasagne `_ **(expert)** diff --git a/doodle.py b/doodle.py index efb1e37..78c01a6 100644 --- a/doodle.py +++ b/doodle.py @@ -518,6 +518,10 @@ def run(self): if args.seed == 'previous': Xn = scipy.misc.imresize(Xn[0], shape, interp='bicubic') Xn = Xn.transpose((2, 0, 1))[np.newaxis] + if os.path.exists(args.seed): + seed_image = scipy.ndimage.imread(args.seed, mode='RGB') + self.seed_image = self.model.prepare_image(seed_image) + Xn = self.seed_image[0] + self.model.pixel_mean # Optimization algorithm needs min and max bounds to prevent divergence. data_bounds = np.zeros((np.product(Xn.shape), 2), dtype=np.float64)