Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine tuning model #41

Open
dingtutu01 opened this issue Dec 20, 2024 · 1 comment
Open

Fine tuning model #41

dingtutu01 opened this issue Dec 20, 2024 · 1 comment

Comments

@dingtutu01
Copy link

How do I fine-tune my own dataset?

@frank-xwang
Copy link
Owner

Hi,

To fine-tune the model on your own datasets, you'll need to follow our pipeline and resume model training by loading our pretrained model.

Specifically:

  1. Prepare your datasets by following the instructions in [#training-data-generation](https://github.com/frank-xwang/InstanceDiffusion#training-data-generation).

  2. Fine-tune the model by adapting the process described in [#instancediffusion-model-training](https://github.com/frank-xwang/InstanceDiffusion#instancediffusion-model-training). Note: Make sure to "resume" the model training via loading the pretrained checkpoint and fine-tune the model on your own dataset. For more details, refer to

    def load_autoresume_ckpt(checkpoint, config, model, ema, opt, scheduler):
    to understand how the model resume function works.

Let me know if you have further questions! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants