reader = imageio.get_reader(video_path, "ffmpeg")
frame_count = 8
pose_images = [Image.fromarray(reader.get_data(i)) for i in range(frame_count)]
```
To extract pose from actual video, read [ControlNet documentation](controlnet).  
3. Run `StableDiffusionControlNetPipeline` with our custom attention processor  
```python
import torch
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel