jkang commited on
Commit
70e86ba
1 Parent(s): 5ce4bf4

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ datasets:
5
+ - web crawled (coming soon)
6
+ ---
7
+
8
+ # Simple CNN-based Artist Classifier
9
+
10
+ This repo contains a simple CNN-based Keras model which classifies images into one of 10 selected artists/painters.
11
+
12
+ - The purpose of this model was for a quick prototyping
13
+ - Data has been web-crawled using `https://github.com/YoongiKim/AutoCrawler`
14
+ - 10 popular artists/painters were chosen:
15
+ - \[ARTIST\]: \[ID\]
16
+ - claude_monet: 0,
17
+ - henri_matisse: 1,
18
+ - jean_michel_basquiat: 2,
19
+ - keith_haring: 3,
20
+ - pablo_picasso: 4,
21
+ - pierre_augste_renoir: 5,
22
+ - rene_magritte: 6,
23
+ - roy_richtenstein: 7,
24
+ - vincent_van_gogh: 8,
25
+ - wassily_kandinsky: 9
26
+ - About 100 representative paintings per artist were crawled and manually checked
27
+ - Dataset will be shared later
28
+
29
+ # How to use
30
+ ```python
31
+ import tensorflow as tf
32
+ from huggingface_hub import from_pretrained_keras
33
+ model = from_pretrained_keras("jkang/drawing-artist-classifier")
34
+
35
+ image_file = 'cat.jpg'
36
+ img = tf.io.read_file(image_file)
37
+ img = tf.io.decode_jpeg(img, channels=3)
38
+
39
+ last_layer_activation, predictions = model(img[tf.newaxis,...])
40
+ ```
41
+
42
+ # Intended uses & limitations
43
+ You can use this model freely for predicting artists or trends of a given image.
44
+ Please keep in mind that this model is not intended for production, but for research and quick prototyping.
45
+ Web-crawled image data might not have a balanced amount of drawings that sufficiently represent the artists.
46
+ ---
47
+ - 2022-01-18 first created by jaekoo kang