# Dreambooth Resume from checkpont 🥲

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdreambooth-resume-from-checkpont%2F28002%3E%5C
**Category:** Beginners\
**Created:** [December 16, 2022, 11:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdreambooth-resume-from-checkpont%2F28002 "2022-12-16T23:48:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SairB](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@SairB](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSairB)%5C
**Post date:** [December 16, 2022, 11:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdreambooth-resume-from-checkpont%2F28002%2F1 "2022-12-16T23:48:28Z")

</div>

Hi All,  
I’m trying to run [Google Colab](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/sd_dreambooth_training.ipynb) but I’m having issues resuming from checkpoints.

I added this code in my training function

```auto
 # Resuming from check point
    if args.resume_from_checkpoint:
        if args.resume_from_checkpoint != "latest":
            path = os.path.basename(args.resume_from_checkpoint)
        else:
            # Get the mos recent checkpoint
            dirs = os.listdir(args.output_dir)
            dirs = [d for d in dirs if d.startswith("checkpoint")]
            dirs = sorted(dirs, key=lambda x: int(x.split("-")[1]))
            path = dirs[-1]
        accelerator.print(f"Resuming from checkpoint {path}")
        accelerator.load_state(os.path.join(args.output_dir, path + "/unet"))
        global_step = int(path.split("-")[1])

```

but I get this error:

> [Errno 2] No such file or directory: ‘dreambooth-concept/checkpoint-2000/pytorch\_model.bin’

Checking the folder I notice that there’s not any file .bin, if I go then to unet subfolder of my checkpoint folder I see this file: diffusion\_pytorch\_model.bin.

Is this what is looking for?

thanks!
