Articles by Gary Hutson

Graph Data Modeling with Python

June 30, 2023 | Gary Hutson

I am so excited to announce that I have a new book (in collaboration with Packt) that has just been launched, written with my co-author, the wonderful Matt Jackson. This books takes you from a nascent understanding of graph data science methods to a more confident user, all in under 250 ...
[...Read more...]

Fine tune a Dreambooth model for image generation using Stable Diffusion with PyTorch

May 25, 2023 | Gary Hutson

I recently did a great talk at Leeds Data Science, where I presented how to fine tune a Stable Diffusion model, using Google’s Dreambooth method, to fine tune the model to create interesting image concepts for generation. This was well received (see:
[...Read more...]

Few Shot Learning with SetFit

February 24, 2023 | Gary Hutson

HuggingFace have been working on a model that can be used for small datasets. The aim is to leverage the pretrained transformer and use contrastive learning to augment and extend the dataset, by using similar labels that share a same dimensional space. In this tutorial I will talk you through ...
[...Read more...]

Stable Diffusion application with Streamlit

December 23, 2022 | Gary Hutson

This combines my love of Deep Learning and Transformer frameworks, with the ability to generate images from textual prompts. First of all I think I should explain a little of what is meant by stable diffusion, and this will be detailed in the next section. Then we will move on ...
[...Read more...]

I know dictionaries, but what is a DefaultDict?

June 13, 2022 | Gary Hutson

The supporting repository and code file is: This is aimed as a short article to explain why you would want to use default dictionaries. What is a defaultdict I hear you ask? A defaultdict is a container like dictionary present in ...
[...Read more...]
1 2 3 4