Closed WilliamLindskog closed 1 year ago
Hi, @WilliamLindskog.
You can customize the self.classifier
in model class.
but please ensure that the self.base
and self.classifier
contain all modules in your model.
Hi, @KarhouTam,
Thank you for your prompt answer. With regards to ResNet, if I were to put the split point somewhere else rather than the final layer, would the following functions forward
, get_all_features
, and get_final_features
generalize or would I need to customize them as well?
You do not need to change these methods. These methods are not called by FedPer, except forward(),which should work properly if you set the base and classifier well.
Hi there!
How can I set the split point at different locations in a neural network e.g. ResNet18? For example, in their paper (see Figure 4a&b), they use different amount of layers in the classifier, thus different amount of layers in the base.
Is this already implemented?
Best regards, W