Skip to content

Dev tools / equipment

Performance comparison of PyTorch and Keras3 with TF2 and Torch backends for a small NN-model on a Nvidia 4060 TI – II – Keras with Torch backend

Not all tasks in Machine Learning [ML] require big LLMs or LLM-based interfaces. Actually, many interesting ML-tasks can be solved with neural networks [NNs] that fit well into the VRAM of a modern GPU or TPU affordable even for private persons. This statements holds in particular for image processing. We have groups of people either learning to work with ML… Read More »Performance comparison of PyTorch and Keras3 with TF2 and Torch backends for a small NN-model on a Nvidia 4060 TI – II – Keras with Torch backend

Two CUDA/cudnn versions with Pytorch and Tensorflow in one virtual Python environment

One of the problems I recently ran into was the coexistence of Tensorflow2 [TF2] and PyTorch in the very same virtual Python environment. I just wanted to make experiments to compare the performance of some Keras-based models with the TF2-backend on one side and, on the other side, with the PyTorch-backend. My trouble resulted from a mismatch of two CUDA/cudnn… Read More »Two CUDA/cudnn versions with Pytorch and Tensorflow in one virtual Python environment

TF 2.16, Keras 3, alternatives for deprecated ImageDataGenerator

These days I started again to work with ResNets and images. To improve accuracy e.g. for classification projects the test on evaluation datasets is the only thing that counts regarding accuracy. One should use some form of data augmentation, best statistically during training, to prevent overfitting of a model. In the past I have often used Keras’ ImageDataGenerator. ImageDatagenerator is… Read More »TF 2.16, Keras 3, alternatives for deprecated ImageDataGenerator

Setting NUMA node to 0 for Nvidia cards on standard Linux PCs

People working on Linux PCs with Tensorflow 2 [TF2] and CUDA may be confronted with warnings complaining a lack of an assignment of their Nvidia graphics card to a NUMA node. This is somewhat enervating as depending on the TF2 version a default entry of “-1” for the NUMA on consumer systems may clatter some of your Jupyter notebook cells… Read More »Setting NUMA node to 0 for Nvidia cards on standard Linux PCs