Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ tags:
|
|
11 |
- fashion
|
12 |
- search
|
13 |
---
|
14 |
-
This model is fine-tuned version of
|
15 |
|
16 |
You can find details of model in this github repo -> [fashion-visual-search](https://github.com/yainage90/fashion-visual-search)
|
17 |
|
@@ -44,7 +44,7 @@ with torch.no_grad():
|
|
44 |
inputs = image_processor(images=[image], return_tensors="pt")
|
45 |
outputs = model(**inputs.to(device))
|
46 |
target_sizes = torch.tensor([[image.size[1], image.size[0]]])
|
47 |
-
results = image_processor.post_process_object_detection(outputs, threshold=0.
|
48 |
|
49 |
items = []
|
50 |
for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
|
|
|
11 |
- fashion
|
12 |
- search
|
13 |
---
|
14 |
+
This model is fine-tuned version of hustvl/yolos-tiny.
|
15 |
|
16 |
You can find details of model in this github repo -> [fashion-visual-search](https://github.com/yainage90/fashion-visual-search)
|
17 |
|
|
|
44 |
inputs = image_processor(images=[image], return_tensors="pt")
|
45 |
outputs = model(**inputs.to(device))
|
46 |
target_sizes = torch.tensor([[image.size[1], image.size[0]]])
|
47 |
+
results = image_processor.post_process_object_detection(outputs, threshold=0.85, target_sizes=target_sizes)[0]
|
48 |
|
49 |
items = []
|
50 |
for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
|