checaabaex
#6
by
feiran
- opened
- .gitattributes +0 -1
- README.md +2 -3
- model.safetensors +0 -3
- preprocessor_config.json +4 -3
.gitattributes
CHANGED
@@ -14,4 +14,3 @@
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
17 |
-
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
|
README.md
CHANGED
@@ -45,9 +45,8 @@ import requests
|
|
45 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
46 |
image = Image.open(requests.get(url, stream=True).raw)
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50", revision="no_timm")
|
51 |
|
52 |
inputs = processor(images=image, return_tensors="pt")
|
53 |
outputs = model(**inputs)
|
|
|
45 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
46 |
image = Image.open(requests.get(url, stream=True).raw)
|
47 |
|
48 |
+
processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50")
|
49 |
+
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50")
|
|
|
50 |
|
51 |
inputs = processor(images=image, return_tensors="pt")
|
52 |
outputs = model(**inputs)
|
model.safetensors
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:830f5e2eeaada8c8c8281779dcc8ab12833972eb8514ed0a35be6c1d4420ad81
|
3 |
-
size 166587896
|
|
|
|
|
|
|
|
preprocessor_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
-
"
|
5 |
"format": "coco_detection",
|
6 |
"image_mean": [
|
7 |
0.485,
|
@@ -13,5 +13,6 @@
|
|
13 |
0.224,
|
14 |
0.225
|
15 |
],
|
16 |
-
"
|
17 |
-
|
|
|
|
1 |
{
|
2 |
"do_normalize": true,
|
3 |
"do_resize": true,
|
4 |
+
"feature_extractor_type": "DetrFeatureExtractor",
|
5 |
"format": "coco_detection",
|
6 |
"image_mean": [
|
7 |
0.485,
|
|
|
13 |
0.224,
|
14 |
0.225
|
15 |
],
|
16 |
+
"max_size": 1333,
|
17 |
+
"size": 800
|
18 |
+
}
|