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

Question :: Python 3.7 with tensorflow? #61

Open
zbeedatm opened this issue Jul 22, 2019 · 6 comments
Open

Question :: Python 3.7 with tensorflow? #61

zbeedatm opened this issue Jul 22, 2019 · 6 comments

Comments

@zbeedatm
Copy link

Hi,
I tried installing tensorflow on top of python 3.7 but didn't succeed and I understood that 3.7 still not supporting tensorflow and there is a need to downgrade to 3.6.

I had to make some changes on the code from this repo to make it compile and work with python 3.6

If there is a possibility to run your code as is (python 3.7 I guess) with tensorflow please let me know what am I missing.

Thanks.

@ThatNight
Copy link

I can run it by python3.6 and tensorflow1.2 without modification

@zbeedatm
Copy link
Author

zbeedatm commented Aug 1, 2019

Weird, I have:
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32

But some code was failing in run-time! like:

base-model:
fp = open(config.eval_result_file, 'w') #w instead of wb: TypeError: a bytes-like object is required, not 'str'

#TODO
data_dict = np.load(data_path, allow_pickle=True, encoding='latin1').item()

in many places had to switch the for loop suntax:

#for param_name, data in data_dict[op_name].iteritems():
for param_name, data in data_dict[op_name].items():

issues like that...

tensorflow:
Name: tensorflow
Version: 1.14.0

Anyways, when I took the trained model and ran the code after fixing all issues I'm not getting good results!
You wrote that you trained it with default configurations, then I guess it was trained with VGG16.
Is there a chance that you have a better trained model that you can share?

What configurations can be changed to get better results in general?

It will help me a lot.

Thanks in advance.

@ThatNight
Copy link

ThatNight commented Aug 1, 2019 via email

@zbeedatm
Copy link
Author

zbeedatm commented Aug 1, 2019

The problem that I don' have a strong enough machine :S
I have a laptop with 1 GPU & windows on it, and when running the training (with CPU actually, didn't try with GPU yet) it was crashing after one day. I guess with GPU will work better... does your code support running under GPU? or it's a matter of installing the GPU tensorflow?

I'm not familiar..

@ThatNight
Copy link

ThatNight commented Aug 1, 2019 via email

@maxy0524
Copy link

https://github.com/79837383/image_captioning
I modified the code, support python3.6, python3.7,TensorFlow1.8 TensorFlow1.12 TensorFlow1.13 TensorFlow1.14, numpy 1.12 or newer, and Baidu disk download link if you like.

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

No branches or pull requests

3 participants