Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 2 & 3 simultaneously #28

Merged
merged 1 commit into from
Aug 6, 2016

Conversation

SoraLab
Copy link
Contributor

@SoraLab SoraLab commented Aug 6, 2016

Tested under Python 2.7 and 3.5.

2.7:

$ python -V
Python 2.7.6
$ python generate.py sample_images/tubingen.jpg -m models/composition.model -o ../comp.jpg -g 0
0.996065855026 sec

3.5:

$ python -V
Python 3.5.1 :: Anaconda 4.1.0 (64-bit)
$ python generate.py sample_images/tubingen.jpg -m models/composition.model -o ../comp.jpg -g 0
1.1357989311218262 sec

@yusuketomoto yusuketomoto merged commit fdcb730 into yusuketomoto:master Aug 6, 2016
@mxchinegod
Copy link

mxchinegod commented Aug 6, 2016

I feel like that could easily be because of Anaconda. Try it with Py3 as a new environment.

Download python 3 and all that jazz and then try alias python=python3 and using the command:

$ python3 generate.py sample_images/tubingen.jpg -m models/composition.model -o ../comp.jpg -g 0

@SoraLab SoraLab deleted the develop branch April 16, 2017 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants