You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i asked chat gpt and studied a bit and wrote this as
class ImageClassification(nn.Module):
def __init__(self, output_size=1):
super(ImageClassification, self).__init__()
resnet = torchvision.models.resnet50(pretrained=True)
self.backbone = nn.Sequential(*list(resnet.children())[:-1])
self.neck = nn.AdaptiveAvgPool2d((1,1))
self.head = nn.Sequential(
nn.Linear(2048, 512),
nn.Linear(512, output_size)
)
def forward(self, x):
x = self.backbone(x)
x = self.neck(x)
x = x.view(x.size(0), -1)
x = self.head(x)
return x
but it is not working at all the model is not learning
can some one help me writing this model thankyou
it will be a great help if you help me with some documentaions also is fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i am new to ml, so i want to know the model clearly, so i was trying to write the model with configuration model
i asked chat gpt and studied a bit and wrote this as
but it is not working at all the model is not learning
can some one help me writing this model thankyou
it will be a great help if you help me with some documentaions also is fine.
Beta Was this translation helpful? Give feedback.
All reactions