TLME commited on
Commit
9c6ceae
Β·
1 Parent(s): 7b9fe37

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -8
README.md CHANGED
@@ -1,16 +1,26 @@
1
  ---
2
  license: mit
 
3
  ---
4
 
5
- A classification using mmpretrain trained to classify western images.
6
 
 
 
 
 
 
 
 
 
 
7
 
8
  ```
9
- testimgs/
10
- β”œβ”€β”€ western
11
- β”‚ β”œβ”€β”€ test1.png
12
- β”‚ └── ...
13
- └── not_western
14
- β”œβ”€β”€ test2.png
15
- └── ...
16
  ```
 
1
  ---
2
  license: mit
3
+ pipeline_tag: image-classification
4
  ---
5
 
6
+ A classification using mmpretrain trained to classify western images based on ConvNeXtV2-tiny.Used for classifying anime images based on whether they are in the Western style.
7
 
8
+ The evaluation accuracy on the validation set is 95%.
9
+
10
+ Trained using 7,000 Western images and 8,000 non-Western images, with the Western training set sampled from e-hentai.
11
+
12
+ Of course, this model also has many shortcomings, such as a very low recognition accuracy for line-drawing images.
13
+
14
+ # How to use
15
+
16
+ Python>=3.9
17
 
18
  ```
19
+ Install pytorch
20
+
21
+ pip3 install openmim
22
+
23
+ edit infer.py , change "path = './testimg/'" to your target folder
24
+
25
+ python infer.py
26
  ```