pszemraj commited on
Commit
12d3194
1 Parent(s): a41953c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -23
README.md CHANGED
@@ -19,28 +19,6 @@ should probably proofread and complete it, then remove this comment. -->
19
 
20
 
21
 
22
- usage:
23
-
24
- ```py
25
- from transformers import pipeline
26
- from PIL import Image
27
- import requests
28
-
29
- pipe = pipeline(
30
- "image-classification",
31
- model="pszemraj/beit-large-patch16-512-film-shot-classifier",
32
- )
33
-
34
- url = "https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/9YqYvv188ZccCMSzuv0KW.png"
35
- image = Image.open(requests.get(url, stream=True).raw)
36
- result = pipe(image)[0]
37
- print(result)
38
- ```
39
-
40
- try some of these:
41
-
42
-
43
-
44
 
45
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/9YqYvv188ZccCMSzuv0KW.png)
46
 
@@ -53,6 +31,7 @@ try some of these:
53
 
54
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/uiricD6EMnyrkyh_7yHdv.png)
55
 
 
56
  ## Model description
57
 
58
 
@@ -61,8 +40,28 @@ It achieves the following results on the evaluation set:
61
  - Loss: 1.2335
62
  - Accuracy: 0.6763
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
- ## class labels
66
 
67
  The dataset contains the following labels:
68
 
 
19
 
20
 
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/9YqYvv188ZccCMSzuv0KW.png)
24
 
 
31
 
32
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/uiricD6EMnyrkyh_7yHdv.png)
33
 
34
+
35
  ## Model description
36
 
37
 
 
40
  - Loss: 1.2335
41
  - Accuracy: 0.6763
42
 
43
+ ## usage
44
+
45
+
46
+ ```py
47
+ from transformers import pipeline
48
+ from PIL import Image
49
+ import requests
50
+
51
+ pipe = pipeline(
52
+ "image-classification",
53
+ model="pszemraj/beit-large-patch16-512-film-shot-classifier",
54
+ )
55
+
56
+ url = "https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/9YqYvv188ZccCMSzuv0KW.png"
57
+ image = Image.open(requests.get(url, stream=True).raw)
58
+ result = pipe(image)[0]
59
+ print(result)
60
+ ```
61
+
62
+ try some of these:
63
 
64
+ ### class labels
65
 
66
  The dataset contains the following labels:
67