Skip to content

Code for the paper "ShowHowTo: Generating Scene-Conditioned Step-by-Step Visual Instructions"

License

Notifications You must be signed in to change notification settings

soCzech/ShowHowTo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShowHowTo: Generating Scene-Conditioned Step-by-Step Visual Instructions

This repository contrains code for the paper ShowHowTo: Generating Scene-Conditioned Step-by-Step Visual Instructions.

Run the model on your images and prompts

  1. Environment setup

    • Use provided Dockerfile to build the environment or install the packages manually.
      docker build -t showhowto .
      docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) --gpus=1 showhowto:latest bash
      
    • The code, as written, requires a GPU.
  2. Download ShowHowTo model weights

  3. Get predictions

    • Run the following command to get example predictions.
      python predict.py --ckpt_path ./weights/showhowto_2to8steps.pt 
                        --prompt_file ./test_data/prompt_file.txt
                        --unconditional_guidance_scale 7.5
      
    • To run the model on your images and prompts, replace ./test_data/prompt_file.txt with your prompt file.

Training

The training code will be released in the coming weeks.

Dataset

The dataset will be released in the coming weeks.

Citation

@article{soucek2024showhowto,
    title={ShowHowTo: Generating Scene-Conditioned Step-by-Step Visual Instructions},
    author={Sou\v{c}ek, Tom\'{a}\v{s} and Gatti, Prajwal and Wray, Michael and Laptev, Ivan and Damen, Dima and Sivic, Josef},
    month = {December},
    year = {2024}
}

About

Code for the paper "ShowHowTo: Generating Scene-Conditioned Step-by-Step Visual Instructions"

Topics

Resources

License

Stars

Watchers

Forks

Languages