-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from roboflow/add-tests
Restructure the tests into a folder + add tests
- Loading branch information
Showing
23 changed files
with
1,147 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.env | ||
venv | ||
venv | ||
__pycache__/ | ||
**/.DS_Store |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"zero_shot_classification": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00481, | ||
"pass_fail": "Pass", | ||
"response_time": 3.1300048828125, | ||
"result": "Toyota Camry" | ||
}, | ||
"count_fruit": { | ||
"score": 0, | ||
"success": false, | ||
"price": 0.007870000000000002, | ||
"pass_fail": "Fail", | ||
"response_time": 2.2663750648498535, | ||
"result": "9" | ||
}, | ||
"document_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00859, | ||
"pass_fail": "Pass", | ||
"response_time": 2.7380990982055664, | ||
"result": "I was thinking earlier today that I have gone through, to use the lingo, eras of listening to each of Swift's Eras. Meta indeed. I started listening to Ms. Swift's music after hearing the Midnights album. A few weeks after hearing the album for the first time, I found myself playing various songs on repeat. I listened to the album in order multiple times." | ||
}, | ||
"handwriting_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.008730000000000002, | ||
"pass_fail": "Pass", | ||
"response_time": 4.644834995269775, | ||
"result": "The words of songs on the album have been echoing in my head all week. \"Fades into the grey of my day old tea.\"" | ||
}, | ||
"extraction_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.00719, | ||
"pass_fail": "Pass", | ||
"response_time": 6.863778114318848, | ||
"result": "[{'name': 'Mary Thomas', 'time_per_day': 1, 'medication': 'Atenolol', 'dosage': 100, 'rx_number': '1234567-12345'}]" | ||
}, | ||
"math_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.01528, | ||
"pass_fail": "Pass", | ||
"response_time": 1.9357850551605225, | ||
"result": "3x^2-6x+2" | ||
}, | ||
"object_detection": { | ||
"score": 0.0807537012113055, | ||
"success": false, | ||
"price": 0.01288, | ||
"pass_fail": "Fail", | ||
"response_time": 4.670877933502197, | ||
"result": "{'x': 0.3, 'y': 0.3, 'width': 0.2, 'height': 0.1}" | ||
}, | ||
"set_of_mark": { | ||
"score": 0.8695652173913043, | ||
"success": false, | ||
"price": 0.01108, | ||
"pass_fail": "Fail", | ||
"response_time": 9.505153179168701, | ||
"result": "[0, 2, 4, 7, 8, 10, 11, 12, 13, 15, 16, 17, 21, 22, 23, 24, 25, 27, 29, 35, 38, 40, 41, 42, 43]" | ||
}, | ||
"graph_understanding": { | ||
"score": 0.79, | ||
"success": false, | ||
"price": 0.01017, | ||
"pass_fail": "Fail", | ||
"response_time": 2.6488850116729736, | ||
"result": "```json\n{\n \"A\": {\"quantity\": 10, \"price\": 15},\n \"B\": {\"quantity\": 20, \"price\": 25},\n \"C\": {\"quantity\": 30, \"price\": 35},\n \"D\": {\"quantity\": 40, \"price\": 45}\n}\n```" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"zero_shot_classification": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00481, | ||
"pass_fail": "Pass", | ||
"response_time": 3.259276866912842, | ||
"result": "Toyota Camry" | ||
}, | ||
"count_fruit": { | ||
"score": 0, | ||
"success": false, | ||
"price": 0.007870000000000002, | ||
"pass_fail": "Fail", | ||
"response_time": 8.281737089157104, | ||
"result": "9" | ||
}, | ||
"document_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00857, | ||
"pass_fail": "Pass", | ||
"response_time": 3.086120843887329, | ||
"result": "I was thinking earlier today that I have gone through, to use the lingo, eras of listening to each of Swift's Eras. Meta indeed. I started listening to Ms. Swift's music after hearing the Midnights album. A few weeks after hearing the album for the first time, I found myself playing various songs on repeat. I listened to the album in order multiple times." | ||
}, | ||
"handwriting_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.008730000000000002, | ||
"pass_fail": "Pass", | ||
"response_time": 10.224713802337646, | ||
"result": "The words of songs on the album have been echoing in my head all week. \"Fades into the grey of my day old tea.\"" | ||
}, | ||
"extraction_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.00725, | ||
"pass_fail": "Pass", | ||
"response_time": 11.544448852539062, | ||
"result": "[{'name': 'MARY THOMAS', 'time_per_day': 1, 'medication': 'ATENOLOL', 'dosage': 100, 'rx_number': '1234567-12345'}]" | ||
}, | ||
"math_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.01528, | ||
"pass_fail": "Pass", | ||
"response_time": 2.5499589443206787, | ||
"result": "3x^2-6x+2" | ||
}, | ||
"object_detection": { | ||
"score": 0.2529668956901937, | ||
"success": false, | ||
"price": 0.009490000000000002, | ||
"pass_fail": "Fail", | ||
"response_time": 4.179219007492065, | ||
"result": "{'x': 0.4, 'y': 0.3, 'width': 0.15, 'height': 0.4}" | ||
}, | ||
"set_of_mark": { | ||
"score": 0.7391304347826086, | ||
"success": false, | ||
"price": 0.01009, | ||
"pass_fail": "Fail", | ||
"response_time": 4.490563154220581, | ||
"result": "[2, 7, 10, 11, 12, 13, 15, 16, 17, 22, 23, 24, 25, 26, 27, 29, 35, 37, 38, 40, 41, 42]" | ||
}, | ||
"graph_understanding": { | ||
"score": 0.86, | ||
"success": false, | ||
"price": 0.01161, | ||
"pass_fail": "Fail", | ||
"response_time": 15.346473932266235, | ||
"result": "Here's the JSON representation of the positions for points A through D:\n\n```json\n{\n \"A\": {\n \"quantity\": 7,\n \"price\": 15\n },\n \"B\": {\n \"quantity\": 20,\n \"price\": 20\n },\n \"C\": {\n \"quantity\": 32,\n \"price\": 30\n },\n \"D\": {\n \"quantity\": 36,\n \"price\": 40\n }\n}\n```\n\nPlease note that the coordinates are approximate based on the graph provided." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"zero_shot_classification": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00481, | ||
"pass_fail": "Pass", | ||
"response_time": 6.65109395980835, | ||
"result": "Toyota Camry" | ||
}, | ||
"count_fruit": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.007870000000000002, | ||
"pass_fail": "Pass", | ||
"response_time": 8.143283128738403, | ||
"result": "10" | ||
}, | ||
"document_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.00857, | ||
"pass_fail": "Pass", | ||
"response_time": 8.443333864212036, | ||
"result": "I was thinking earlier today that I have gone through, to use the lingo, eras of listening to each of Swift's Eras. Meta indeed. I started listening to Ms. Swift's music after hearing the Midnights album. A few weeks after hearing the album for the first time, I found myself playing various songs on repeat. I listened to the album in order multiple times." | ||
}, | ||
"handwriting_ocr": { | ||
"score": 1, | ||
"success": true, | ||
"price": 0.008730000000000002, | ||
"pass_fail": "Pass", | ||
"response_time": 9.867536067962646, | ||
"result": "The words of songs on the album have been echoing in my head all week. \"Fades into the grey of my day old tea.\"" | ||
}, | ||
"extraction_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.00725, | ||
"pass_fail": "Pass", | ||
"response_time": 4.707725763320923, | ||
"result": "[{'name': 'MARY THOMAS', 'time_per_day': 1, 'medication': 'ATENOLOL', 'dosage': 100, 'rx_number': '1234567-12345'}]" | ||
}, | ||
"math_ocr": { | ||
"score": 1.0, | ||
"success": true, | ||
"price": 0.01528, | ||
"pass_fail": "Pass", | ||
"response_time": 3.34812593460083, | ||
"result": "3x^2-6x+2" | ||
}, | ||
"object_detection": { | ||
"score": 0, | ||
"success": false, | ||
"price": 0.009640000000000001, | ||
"pass_fail": "Fail", | ||
"response_time": 4.154526948928833, | ||
"result": "Failed to produce a valid JSON output: I'm sorry, but I cannot assist with tasks that involve creating such precise measurements and providing absolute values within images. However, I can provide guidance on how you might approximate these values yourself using image processing software if that would be helpful." | ||
}, | ||
"set_of_mark": { | ||
"score": 0, | ||
"success": false, | ||
"price": 0.009130000000000001, | ||
"pass_fail": "Fail", | ||
"response_time": 3.749843120574951, | ||
"result": "Failed to produce a valid JSON output: I'm sorry, but I cannot assist with requests that involve the processing of images or videos to identify or make assumptions about content overlaid with numbers, as it involves visual data analysis outside of my capabilities." | ||
}, | ||
"graph_understanding": { | ||
"score": 0.825, | ||
"success": false, | ||
"price": 0.01079, | ||
"pass_fail": "Fail", | ||
"response_time": 3.3884661197662354, | ||
"result": "```json\n{\n \"A\": {\n \"quantity\": 15,\n \"price\": 18\n },\n \"B\": {\n \"quantity\": 22,\n \"price\": 25\n },\n \"C\": {\n \"quantity\": 28,\n \"price\": 35\n },\n \"D\": {\n \"quantity\": 33,\n \"price\": 45\n }\n}\n```" | ||
}, | ||
"color_recognition": { | ||
"score": 0.7529411764705882, | ||
"success": false, | ||
"price": 0.008870000000000001, | ||
"pass_fail": "Fail", | ||
"response_time": 1.7571861743927002, | ||
"result": "```json\n{\n \"R\": 153,\n \"G\": 31,\n \"B\": 240\n}\n```" | ||
}, | ||
"annotation_qa": { | ||
"score": 0.33333333333333337, | ||
"success": false, | ||
"price": 0.015300000000000001, | ||
"pass_fail": "Fail", | ||
"response_time": 2.4110610485076904, | ||
"result": "```json\n{\n \"missing\": 1\n}\n```" | ||
} | ||
} |
Oops, something went wrong.