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 find this code for remove last layer (my purpose is just extract features):
newـmodel = torch.nn.Sequential(*(list(model.children())[:-1]))
but newـmodel has different type for put image.
The following code no longer works due to the above code:
new_model(image_transposed)
for get output of
thanks
The text was updated successfully, but these errors were encountered:
i find this code for remove last layer (my purpose is just extract features):
newـmodel = torch.nn.Sequential(*(list(model.children())[:-1]))
but newـmodel has different type for put image.
The following code no longer works due to the above code:
new_model(image_transposed)
for get output of
thanks
The text was updated successfully, but these errors were encountered: