Original size 1100x1600

Training a model based on the works of Hiroshige Utagawa

PROTECT STATUS: not protected
Longread translated automatically
The project is taking part in the competition

Concept

Utagawa Hiroshige (1797–1858) was a Japanese painter and master of Edo-period color woodblock prints. He is regarded as one of the preeminent landscape artists of the ukiyo-e school.

His body of work includes numerous pieces dedicated specifically to natural landscapes. I plan to reimagine, in his style, what predominantly urban scenes might look like.

big
Original size 2720x454

Examples from the source archive

Model Training

The original notebook containing the course code was used to train the model. The working environment was Google Colab.

First, the setup was verified, connecting to the T4 GPU runtime and loading all models required for processing: —! pip install bitsandbytes transformers accelerate peft -q —! pip install git+https://github.com/huggingface/diffusers.git -q.

Next, the model itself was loaded: —! wget https://raw.githubusercontent.com/huggingface/diffusers/main/examples/dreambooth/train_dreambooth_lora_sdxl.py

The next step involves processing the source images. Through local_dir, I create a link between the working environment and the image disk, and I set the initial model parameters (the prompt via instance_prompt, the resolution via resolution, and so on).

The second-to-last stage involves working with the model, where I adjust its training parameters: — resolution — where the model is saved on my drive — the key prompt and so on.

big
Original size 1606x852

After training the model, it was saved to disk. I am uploading it to the working environment and beginning the generations.

Generation Series

Original size 744x744

Test generation. Snowy Edo street, in Hiro style

Japanese city bridge crowded with pedestrians, in Hiro style

Original size 744x744

Japanese city bridge crowded with pedestrians, in hiro style

Japanese city street during heavy rain, in hiro style

Busy harbor district with boats and merchants, in hiro style

Original size 744x744

Japanese theater district at night, in hiro style

Japanese street parade passing through the city, in hiro style

Night market in an old Japanese city, in hiro style

Night market in an old Japanese city, in hiro style

Original size 744x744

Night market in an old Japanese city, in hiro style

Large Edo fish market beside the waterfront, in Hiro style

Original size 744x744

Edo theater entrance surrounded by spectators, in Ukiyo-e style

Temple grounds filled with festival stalls, in a hiro style

Temple grounds filled with festival stalls, in Hiro style

Fireworks above a crowded Edo waterfront, in Ukiyo-e style

Training a model based on the works of Hiroshige Utagawa
Project created at 26.09.2026