python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
how does (PyTorch) model.load_state_dict() work for modified model?
I've modified BasicBlock of Resnet architecture by adding a few more FC layers at the end of the block.
I tried model.load_state_dict() on the new model and it worked perfectly.
I wonder how the weigh...

Quang Đại Nguyễn
Votes: 0
Answers: 0
How to import resnet in local
I have installed keras and when I'm trying to import resnet by command
# from resnet.py
import resnet
I'm getting the below error
ImportError: cannot import name 'BatchNormalization' from 'keras.laye...
Data_guy
Votes: 0
Answers: 0
ValueError in resnet 50
I tried training my dataset with resnet50:
class_names = train_ds.class_names
num_classes=len(class_names)
resnet_model = Sequential()
pretrained_model= tf.keras.applications.ResNet50(include_top=F...
Dszyk
Votes: 0
Answers: 0
ValueError: Unable to create dataset (name already exists) while saving tensorflow model
I am trying to save the trained model below.
resnet = ResNet50V2(input_shape=(im_size,im_size,3), weights='imagenet', include_top=False)
headModel = AvgPool2D(pool_size=(3,3))(resnet.output)
headModel...
Jeanne Chaverot
Votes: 0
Answers: 1