Hello,
in this code i ave the 2 following errors :
-ERROR: LoadError: UndefVarError: `Resnet` not defined
-ERROR: LoadError: UndefVarError: `get_classes` not defined
the code of my book :
using Flux
using Metalhead
using Images
#Load a pretrained model(ResNet)
model = Resnet()
imagenet_labels = Metalhead.get_classes(1000)
#Load and preprocess an image
image_path ="Beagle.jpg"
img=Images.load(image_path)
img Images.imresize(img,(224,224))
images.channelview
input = Metalhead.preprocess(img)
#Make a prediction
output = model(input)
#Interpret the prediction
prediction = imagenet_labels[argmax(output)]
println("Predicted Label:",prediction)
Thanks for your help.