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

When DiffusonDet Model is created in 'train_net.py'? #92

Closed
MatteoMele98 opened this issue Aug 21, 2023 · 1 comment
Closed

When DiffusonDet Model is created in 'train_net.py'? #92

MatteoMele98 opened this issue Aug 21, 2023 · 1 comment

Comments

@MatteoMele98
Copy link

Hi, first of all Congratulations on your work!

I was analyzing the code, starting from the 'train_net.py' file, to get a good understanding of how the different components worked together.

I can't figure out how the DiffusionDet model is actually created: in 'train_net.py' the build_model of d2 is invoked (as indicated here

def build_model(cls, cfg):
), therefore the DiffusionDet class present in 'detectron_py' (which should create the DiffusionDet model) is not invoked (?)

I also do not understand when the forward and loss functions described in 'detectron_py' are called during training.

These are definitely trivial questions, but I can't figure them out. Thank you very much.

@MatteoMele98
Copy link
Author

Looking closer I saw that build_model builds cfg.MODEL.META_ARCHITECTURE; using DiffusionDet configurations MODEL.META_ARCHITECTURE = DiffusionDet, so the model is created that way, right?

However, I still do not understand how the forward and loss function are invoked during training.

Thanks again

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

1 participant