I am unable to plot the validation accuracies Vs epoch curve while using the following code
from hugsvision.nnet.VisionClassifierTrainer import VisionClassifierTrainer
from transformers import ViTFeatureExtractor, ViTForImageClassification
`trainer = VisionClassifierTrainer(
model_name = "MyKvasirV2Model11",
train = train,
test = test,
output_dir = "/content/drive/MyDrive/Untitled Folder",
#max_epochs = 10,
#batch_size = 32, # On RTX 2080 Ti
# lr = 2e-5,
max_epochs = 2,
batch_size = 50, # On RTX 2080 Ti
lr = 2e-5,
# fp16 = True,
model = ViTForImageClassification.from_pretrained(
huggingface_model,
num_labels = len(label2id),
label2id = label2id,
id2label = id2label
),
feature_extractor = ViTFeatureExtractor.from_pretrained(
huggingface_model,
),
)
I am trying a binary image classification and not getting the validation accuracies per epoch