This project implements a deep learning model using
ResNet-152 to classify figures from scientific documents, leveraging the
DocFigure dataset. The goal is to accurately categorize figures (e.g., Line graph, Natural image, Table, 3D object) from academic papers to assist in document understanding and search.
1from X import ResNet_152_DocFig
2
3# Load the model
4model = ResNet_152_DocFig()
5
6# Load the image
7image = Image.open("image.png").convert('RGB')
8
9# Get Predicted Label
10pred_label = model(image)
11print(f"Predicted Label: {pred_label}")
This project is developed and maintained by
Sehaba95.