StephanAkkerman commited on
Commit
53fe2cc
·
verified ·
1 Parent(s): a91d7fd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -1
README.md CHANGED
@@ -18,5 +18,60 @@ metrics:
18
  - f1
19
  - precision
20
  - recall
 
 
21
  ---
22
- # Model card for chart-recognizer
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  - f1
19
  - precision
20
  - recall
21
+ pipeline_tag: image-classification
22
+ base_model: efficientnet_b0
23
  ---
24
+ # Chart Recognizer
25
+
26
+ chart-recognizer is a finetuned model for classifying images. It uses efficientnet as its base model, making it a fast and small model.
27
+ This model is trained on my own dataset of financial charts posted on Twitter, which can be found here [StephanAkkerman/fintwit-charts](https://huggingface.co/datasets/StephanAkkerman/fintwit-charts).
28
+
29
+ ## Intended Uses
30
+
31
+ chart-recognizer is intended for classifying images, mainly images posted on social media.
32
+
33
+ ## Dataset
34
+
35
+ chart-recognizer has been trained on my own dataset. So far I have not been able to find another image dataset about financial charts.
36
+ - [StephanAkkerman/fintwit-charts](https://huggingface.co/datasets/StephanAkkerman/fintwit-charts): 1,978 images.
37
+
38
+ ## More Information
39
+
40
+ For a comprehensive overview, including the training setup and analysis of the model, visit the [chart-recognizer GitHub repository](https://github.com/StephanAkkerman/chart-recognizer).
41
+
42
+ ## Usage
43
+
44
+ Using [HuggingFace's transformers library](https://huggingface.co/docs/transformers/index) the model can be converted into a pipeline for image classification.
45
+
46
+ ```python
47
+ from transformers import pipeline
48
+
49
+ # Create a sentiment analysis pipeline
50
+ pipe = pipeline(
51
+ "image-classification",
52
+ model="StephanAkkerman/chart-recognizer",
53
+ )
54
+
55
+ # Get the predicted sentiment
56
+ print(pipe(image))
57
+ ```
58
+
59
+ ## Citing & Authors
60
+
61
+ If you use chart-recognizer in your research, please cite me as follows:
62
+
63
+ ```
64
+ @misc{chart-recognizer,
65
+ author = {Stephan Akkerman},
66
+ title = {chart-recognizer: A Specialized Image Model for Financial Charts},
67
+ year = {2024},
68
+ publisher = {GitHub},
69
+ journal = {GitHub repository},
70
+ howpublished = {\url{https://github.com/StephanAkkerman/chart-recognizer}}
71
+ }
72
+ ```
73
+
74
+ ## License
75
+
76
+ This project is licensed under the MIT License. See the [LICENSE](https://choosealicense.com/licenses/mit/) file for details.
77
+