Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

dataset = datasets.ImageFolder ( root = 'path _ to _ your _ data', transform = transform ) I changed to train _ data = datasets.ImageFolder

dataset = datasets.ImageFolder(root='path_to_your_data', transform=transform)
I changed to train_data = datasets.ImageFolder(root='./train', transform=transform)
test_data = datasets.ImageFolder(root='./test', transform=transform). Given that I have 2 folder 'test' and 'train'. Each folder will have 4 subfolder 'Action', 'Comedy', 'Horror', 'Romance', which includes many poster films for that type. Using the EfficientNet_B0 as the base model, perform transfer learning to re-train 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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions