Skip to content

Commit

Permalink
Merge pull request yusuketomoto#28 from SoraLab/develop
Browse files Browse the repository at this point in the history
Support Python 2 & 3 simultaneously
  • Loading branch information
yusuketomoto committed Aug 6, 2016
2 parents a9cdbd4 + 46965f0 commit fdcb730
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import numpy as np
import argparse
from PIL import Image
Expand Down Expand Up @@ -33,6 +34,6 @@
result = result.transpose(0, 2, 3, 1)
result = result.reshape((result.shape[1:]))
result = np.uint8(result)
print time.time() - start, 'sec'
print(time.time() - start, 'sec')

Image.fromarray(result).save(args.out)

0 comments on commit fdcb730

Please sign in to comment.