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

training FRCNN- requires_grad #72

Open
javadvahid opened this issue Aug 10, 2023 · 0 comments
Open

training FRCNN- requires_grad #72

javadvahid opened this issue Aug 10, 2023 · 0 comments

Comments

@javadvahid
Copy link

javadvahid commented Aug 10, 2023

in the book it says we freeeze the parameters but the requires_grad is set to True?
is that correct?
why?
shouldnt it be set to false like in RCNN?

class FRCNN(nn.Module):
def init(self):
super().init()
rawnet = torchvision.models.vgg16_bn(pretrained=True)
for param in rawnet.features.parameters():
param.requires_grad = True

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

No branches or pull requests

1 participant