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

How can I improve the speed of data generated process? It's too slow and it's hard to work with a big dataset. #6

Open
Cabbagehust2507 opened this issue Dec 30, 2019 · 1 comment

Comments

@Cabbagehust2507
Copy link

Cabbagehust2507 commented Dec 30, 2019

I tried to use your code to generate TFrecord from 2.4 million images (1024x64), but it takes 3s for 1 image generation, hence I need 1 month at least for generating that dataset. So I want to know how to improve this issue?

@docongminh
Copy link

docongminh commented May 19, 2020

You could use GPUs for up speech conversion process
same code here

 config = tf.ConfigProto()

 np_data = np.array(img)

 image = tf.image.convert_image_dtype(np_data, dtype=tf.uint8)

 image = tf.image.encode_jpeg(image)

 with tf.Session(config=config) as sess:

         image_data = sess.run(image)

         sess.close()

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

2 participants