Answered step by step
Verified Expert Solution
Question
1 Approved Answer
dataset = datasets.ImageFolder ( root = 'path _ to _ your _ data', transform = transform ) I changed to train _ data = datasets.ImageFolder
dataset datasets.ImageFolderroot'pathtoyourdata', transformtransform I changed to traindata datasets.ImageFolderroottrain transformtransform testdata datasets.ImageFolderroottest transformtransform Given that I have folder 'test' and 'train'. Each folder will have subfolder 'Action', 'Comedy', 'Horror', 'Romance', which includes many poster films for that type. Using the EfficientNetB as the base model, perform transfer learning to retrain the final layer using this new dataset. Determine the test accuracy of this new model.
dataset datasets.ImageFolderroot'pathtoyourdata', transformtransform
I changed to traindata datasets.ImageFolderroottrain transformtransform
testdata datasets.ImageFolderroottest transformtransform Given that I have folder 'test' and 'train'. Each folder will have subfolder 'Action', 'Comedy', 'Horror', 'Romance', which includes many poster films for that type. Using the EfficientNetB as the base model, perform transfer learning to retrain the final layer using
this new dataset. Determine the test accuracy of this new model.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started