cookiefinder commited on
Commit
0dfeca2
·
1 Parent(s): ba304e3

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ # For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/model-cards
4
+ {}
5
+ ---
6
+
7
+ # Model Card for VGG19
8
+
9
+ VGG19BN Model from torchvision.models
10
+
11
+ Used in 'aiornot' classification competition on HuggingFace. Performs binary classification to detect whether the image is AI-generated or not.
12
+
13
+ ## Model Details
14
+
15
+ ### How to Get Started with the Model
16
+
17
+ Use the code below to get started with the model.
18
+
19
+ ckpt = torch.load('last.ckpt', map_location=device)
20
+ weights = ckpt['model']
21
+ model = torchvision.models.vgg19_bn().to(device)
22
+ model.load_state_dict(weights)
23
+
24
+