torralba-lab / im2recipe

Code supporting the CVPR 2017 paper "Learning Cross-modal Embeddings for Cooking Recipes and Food Images"
MIT License
365 stars 89 forks source link

Fix HDF5 error & Reduce RAM consumption #7

Closed Cadene closed 7 years ago

Cadene commented 7 years ago

Fix the issue: https://github.com/torralba-lab/im2recipe/issues/5

For more info, see the commit message: https://github.com/torralba-lab/im2recipe/pull/7/commits/67da133916d51cecbebd7b46b2947fc8ea1a71f2

nhynes commented 7 years ago

Nice catch! I think that the issue might have been due to reading the h5 from multiple threads (despite the implementation of HDF5 not being thread safe).