This workshop introduces learners to the automatic text recognition (ATR) tool suite “Loghi”. This collection of tools can be used locally, i.e., without uploading data to a foreign server or a cloud service, which may not be an option for projects with stricter data protection guidelines.
The workshop will briefly introduce ATR and its capabilities and limitations. Afterwards, learners will be introduced to Loghi’s command-line interface, and we will practice using a previously trained model to recognise text, prepare our data for training, and utilise it to train a new model.
When & Where?
2024-09-24, 9:00 - 11:30 at DSC-Oasen, Georg Sverdrups hus, University of Oslo Library
Registration and more info at: https://www.ub.uio.no/english/libraries/dsc/berut/events/workshops/2024-09-24_ws_loghi.html
Preliminary Lesson Plan
Please note that the slides may still undergo small changes until a few days before the workshop.
- Welcome and introductions
- Introduction to Automatic Text Recognition (ATR) - Slides
- Setting up Loghi with Docker - Slides
- Using a pre-trained model to recognise text - Slides
- Creating training data from existing annotations - Slides
- Fine-Tuning and using a small custom model - Slides
- Final questions and wrapping up
Lesson Material
The lesson material can be downloaded here
Docker Installation Instructions
After the installation, Docker Desktop may prompt you to login/create a user account. This is not required in order to use Docker and you can therefore skip this step!
Mac
Follow the instructions at: https://docs.docker.com/desktop/install/mac-install/
Note that the installation varies slightly, depending on whether your Mac is using and Intel or Apple Silicon chip!
Linux
On Linux, you can either install the command-line based Docker Engine by itself: https://docs.docker.com/engine/install/, or integrated within the graphical user interface Docker Desktop https://docs.docker.com/desktop/install/linux-install/
Both versions will work fine for this workshop!
Windows
Before you can install Docker Desktop, a number of prerequisites have to be fulfilled. Note that the images below were taken on Windows 10 and may look slightly different if you are working with Windows 11. The respective options should be the same, however!
Install the Windows Subsystem for Linux (WSL)
- Open the PowerShell in administrator mode, by searching for the programm in the
Windows Start Menu(start typing PowerShell to see search results). Right-click on the menu entry and choose “Run as administrator”.
if PowerShell is not available, look for “Command Prompt” instead and follow the same steps
- Enter the command below and press
Enter.wsl --install - Once the installation is complete, restart your computer.
Enable the WSL Windows Feature
- In the
Windows Start Menu, search for: “Turn Windows Features on or off” by starting to type the name. - In the new window, scroll all the way to the bottom and ensure that the box for “Windows Subsystem for Linux” is ticked

Ensure that Virtualization is Enabled
- Open the Task Manager, e.g. by searching for it in the
Windows Start Menuor right-clicking the task bar and selecting Task Manager in the menu - At the top, navigate to the Performance tab
- Check that Virtualization is set to Enabled
If Virtualization is Disabled, talk to your administrator (if any) or follow these instructions: https://support.microsoft.com/en-gb/windows/enable-virtualization-on-windows-c5578302-6e43-4b4b-a449-8ced115f58e1

While you are looking at the Task Manager, you can also check whether your machine has a Graphics Processing Unit (GPU), in the list on the left. This information will be relevant during the workshop.
Continue with the Docker Desktop Installation
- Go to: https://docs.docker.com/desktop/install/windows-install/
- Download the “Docker Desktop for Windows - x86_64” installer by clicking on the button. Take note of where you have saved the file!
- Follow the instructions in the section “Install Interactively”: https://docs.docker.com/desktop/install/windows-install/#install-interactively
- if prompted, select the WSL 2 backend
Note: if you encounter any issues during the installation, restart your machine and start the Docker installer again