defaultdict is your friend You’ve probably already found yourself in the following situation: you have a list of objects and you need to sort those objects into different buckets based on some cri...
The problem Suppose that you have a script script.py that imports something from another file dependency.py. The two files are at the same level in the project hierarchy. my_project/ ├── script.p...
Small update on the GANdam project ! If you don’t know what I’m talking about, part 1 is here. I’ll try to keep it shorter this time… Improvements I did some experimentation and here are the chan...
On Linux, if you want to display a FPS counter in your application, there are several ways to do so, but they depend on your hardware and the underlying 3D API being used (Vulkan or OpenGL). This s...
The goal Generative Adversarial Networks, or GANs for short, are a pretty neat type of neural network. Train them on a large enough set of data points belonging to the same distribution, and they’...