francisco@home:~$

  • Parallel training in Tensorflow 2.0

    Recently I have been able to use 2 GPUs for model training. I was having problems while training with both of them (only one of them was being used). At the end, thanks to this issue thread, I knew that with the new eager mode, there exist a bug for...

  • Combine images vertically

    Recently I needed to combine a bunch of images for a book. Since I didn’t want to use a software I thought it would be easier to combine them using Python with the following script (thanks to Python Programming): import numpy as np from PIL import Image import glob list_im...

  • Using glob for file retrieval

    When is glob useful? Usually I need to iterate over lots of CSV files. Imaging that you have loads of CSV files which contains the EMG (declared as an array of floats) information of different patients. You want to read them with Python’s library Pandas. Having to declare each CSV...