Skip to content

About

[WACV 2026] ShowMe: Unifying Instructional Image and Video Generation with Diffusion Models

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Show Me: Unifying Instructional Image and Video Generation with Diffusion Models

This repository is the official PyTorch implementation for our WACV'26 paper:

Show Me: Unifying Instructional Image and Video Generation with Diffusion Models.

Yujiang Pu, Zhanbo Huang, Vishnu Boddeti, and Yu Kong

Method Overview

ShowMe method overview

Figure 1. Overview of the ShowMe framework.

1. Environment Setup

We recommend using conda to manage the environment.

conda create -n showme python=3.8.5
conda activate showme
pip install -r requirements.txt

2. Data Preparation

We conduct experiments on three datasets: Something-Something v2 (ssv2), Epic-Kitchens 100 (epic100), and Ego4D Forecasting (FHO) Benchmark. Please follow their standard instructions to download the raw video data, and download our reorganized annotations from Google Drive.

For epic100, we adopt a two-stage processing pipeline. First, run the following command to extract the video clips:

cd data_process/

python extract_epic_clips.py \
  --csv_path /path/to/EPIC_100_HOI_train.csv \
  --video_root /path/to/epic_videos \
  --target_root /path/to/epic_clips \
  --target_size 256

Then run the following command to curate the clips and extract the frames:

cd data_process/

python filter_epic_frames.py \
  --csv_path /path/to/EPIC_100_HOI_train.csv \
  --video_base_path /path/to/epic_clips \
  --output_base_path /path/to/epic_frames

For Ego4D, run the following command to extract the video clips:

cd data_process/

python process_ego4d.py \
  --json_path /path/to/ego4d_train.json \
  --src_path /src_path \
  --target_path /target_path \
  --target_size 256

Finally, organize the video data and annotations as follows:

Data
├── somethingV2
│   ├── train_videos
│   │   ├── video_id.mp4
│   │   └── ...
│   ├── eval_videos
│   │   ├── video_id.mp4
│   │   └── ...
│   ├── ssv2-train-HOI.jsonl
│   └── ssv2-val-HOI.jsonl
│
├── epic-kitchens100
│   ├── train_frames
│   │   ├── video_id
│   │   │   ├── frame_000001.jpg
│   │   │   ├── frame_000002.jpg
│   │   │   └── ...
│   ├── val_frames
│   │   ├── video_id
│   │   │   ├── frame_000001.jpg
│   │   │   ├── frame_000002.jpg
│   │   │   └── ...
│   ├── EPIC_100_HOI_train.csv
│   └── EPIC_100_HOI_val.csv
│
└── Ego4D
    ├── train_clips
    │   ├── video_id
    │   │   ├── seg_id.mp4
    │   │   └── ...
    ├── val_clips
    │   ├── video_id
    │   │   ├── seg_id.mp4
    │   │   └── ...
    ├── ego4d_train.json
    └── ego4d_val.json

You may place Data anywhere on your system, but remember the absolute path; it will be used as data_dir in training and inference configs.

3. Model Preparation

Base Model: Download the pretrained checkpoint from the DynamiCrafter repository.

Fine-tuned Weights: Download our LoRA weights from our Google Drive.

Put the weights under the checkpoints directory:

checkpoints/
├── model.ckpt  # Pretrained DynamiCrafter base model
├── ssv2/
│   ├── lora_image.pth
│   └── lora_video.pth
├── epic100/
│   ├── lora_image.pth
│   └── lora_video.pth
└── ego4d/
    ├── lora_image.pth
    └── lora_video.pth

Make sure the directory names and filenames match the paths expected in your config files.

4. 🚀 Training

Our model follows a two-stage training strategy with reward fine-tuning. Please modify configs/config_train.yaml and train.sh to update paths to your local directory.

Launch the training script:

bash configs/training_256_v1.0/train.sh

Please refer to the comments inside for dataset and stage-specific options.

5. 🎬 Inference

Our model supports both image and video generation.

  1. Open main/inference.sh.

  2. Specify the dataset, stage, and data_dir variables.

  3. (Optional) Change the GPU ID in the script for single or multi-GPU inference.

Run the inference script:

bash main/inference.sh

6. 📊 Evaluation

Evaluation scripts and instructions are located in the evaluation directory.

7. Acknowledgement

Our code is built upon DynamiCrafter. We thank the authors for their great open-source contribution.

8. Citation

If you find this repository useful, please consider citing our paper:

@article{pu2025show,
  title={Show Me: Unifying Instructional Image and Video Generation with Diffusion Models},
  author={Pu, Yujiang and Huang, Zhanbo and Boddeti, Vishnu and Kong, Yu},
  journal={arXiv preprint arXiv:2511.17839},
  year={2025}
}

About

[WACV 2026] ShowMe: Unifying Instructional Image and Video Generation with Diffusion Models

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages