Datasets:
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .DS_StoreAdded
- blocks/.DS_StoreAdded
- blocks/task1/eval.pyAdded+40
- blocks/task1/example/level3/annotation.txtAdded+8
- blocks/task1/example/level3/answer/0.txtAdded+6
- blocks/task1/example/level3/answer/1.txtAdded+4
- blocks/task1/example/level3/answer/2.txtAdded+4
- blocks/task1/example/level3/answer/3.txtAdded+6
- blocks/task1/example/level3/answer/4.txtAdded+6
- blocks/task1/example/level3/answer/5.txtAdded+6
- blocks/task1/example/level3/answer/6.txtAdded+5
- blocks/task1/example/level3/answer/7.txtAdded+6
- blocks/task1/example/level3/image_input/0.jpgAdded
- blocks/task1/example/level3/image_input/1.jpgAdded
- blocks/task1/example/level3/image_input/2.jpgAdded
- blocks/task1/example/level3/image_input/3.jpgAdded
- blocks/task1/example/level3/image_input/4.jpgAdded
- blocks/task1/example/level3/image_input/5.jpgAdded
- blocks/task1/example/level3/image_input/6.jpgAdded
- blocks/task1/example/level3/image_input/7.jpgAdded
- blocks/task1/example/level3/pure_text_rep_input/0.txtAdded+3
- blocks/task1/example/level3/pure_text_rep_input/1.txtAdded+1
- blocks/task1/example/level3/pure_text_rep_input/2.txtAdded+1
- blocks/task1/example/level3/pure_text_rep_input/3.txtAdded+3
- blocks/task1/example/level3/pure_text_rep_input/4.txtAdded+3
- blocks/task1/example/level3/pure_text_rep_input/5.txtAdded+3
- blocks/task1/example/level3/pure_text_rep_input/6.txtAdded+2
- blocks/task1/example/level3/pure_text_rep_input/7.txtAdded+3
- blocks/task1/example/level3/table_rep_input/0.txtAdded+2
- blocks/task1/example/level3/table_rep_input/1.txtAdded+4
- blocks/task1/example/level3/table_rep_input/2.txtAdded+4
- blocks/task1/example/level3/table_rep_input/3.txtAdded+2
- blocks/task1/example/level3/table_rep_input/4.txtAdded+2
- blocks/task1/example/level3/table_rep_input/5.txtAdded+2
- blocks/task1/example/level3/table_rep_input/6.txtAdded+3
- blocks/task1/example/level3/table_rep_input/7.txtAdded+2
- blocks/task1/example/level3/text_input/0.txtAdded+1
- blocks/task1/example/level3/text_input/1.txtAdded+1
- blocks/task1/example/level3/text_input/2.txtAdded+1
- blocks/task1/example/level3/text_input/3.txtAdded+1
- blocks/task1/example/level3/text_input/4.txtAdded+1
- blocks/task1/example/level3/text_input/5.txtAdded+1
- blocks/task1/example/level3/text_input/6.txtAdded+1
- blocks/task1/example/level3/text_input/7.txtAdded+1
- blocks/task1/example/level4/annotation.txtAdded+8
- blocks/task1/example/level4/answer/0.txtAdded+5
- blocks/task1/example/level4/answer/1.txtAdded+7
- blocks/task1/example/level4/answer/2.txtAdded+4
- blocks/task1/example/level4/answer/3.txtAdded+5
- blocks/task1/example/level4/answer/4.txtAdded+5
12345678910111213141516171819202122232425262728293031323334353637383940import csvimport os
def clear_answer(plan): plan = plan.replace('"', '') plan = plan.replace("'", '') plan = plan.replace("\n", '') plan = plan.replace(".", '') plan = plan.replace("*", '') plan = plan.lstrip() plan = plan.rstrip() return plan
# import ipdb; ipdb.set_trace()count_corr = [0,0,0]invalid = [0,0,0]for level in [3,4,5]: with open("../level%d/annotation.txt"%(level), "r") as f: gt_records = f.read().split('\n')[:-1] for test_id in range(100): try: curr_record = gt_records[test_id] with open("output/output_img/level%d/%d.txt"%(level, test_id), "r") as f: answer = f.read() answer_index = answer.find("<Output>") answer = answer[(answer_index + len("<Output>")):] answer_possible_end_index = answer.find('\n') if answer_possible_end_index != -1: answer = answer[:answer_possible_end_index] answer = clear_answer(answer) if curr_record.lower() == answer.lower(): count_corr[level-3] += 1 else: print(answer) except: invalid[level-3] += 1 # print(test_id)print(count_corr)print(invalid)print("")12345678purpleorangeorangeyellowbluegreenblueorange123456The input contains 3 blocks in 3 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a red block.- Stack 2 has 1 level.Level 1 has a orange block.- Stack 3 has 1 level.Level 1 has a purple block.As such, for the question "What is the color of the block at stack 3, level 1?", the correct answer is "<Output> purple".<Output> purple1234The input contains 3 blocks in 1 stacks. From left to right:- Stack 1 has 3 level. From bottom to top: level 1 has an orange block, level 2 has an yellow block, level 3 has an red block,As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> orange".<Output> orange1234The input contains 3 blocks in 1 stacks. From left to right:- Stack 1 has 3 level. From bottom to top: level 1 has an red block, level 2 has an blue block, level 3 has an orange block,As such, for the question "What is the color of the block at stack 1, level 3?", the correct answer is "<Output> orange".<Output> orange123456The input contains 3 blocks in 3 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a blue block.- Stack 2 has 1 level.Level 1 has a orange block.- Stack 3 has 1 level.Level 1 has a yellow block.As such, for the question "What is the color of the block at stack 3, level 1?", the correct answer is "<Output> yellow".<Output> yellow123456The input contains 3 blocks in 3 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a orange block.- Stack 2 has 1 level.Level 1 has a green block.- Stack 3 has 1 level.Level 1 has a blue block.As such, for the question "What is the color of the block at stack 3, level 1?", the correct answer is "<Output> blue".<Output> blue123456The input contains 3 blocks in 3 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a purple block.- Stack 2 has 1 level.Level 1 has a blue block.- Stack 3 has 1 level.Level 1 has a green block.As such, for the question "What is the color of the block at stack 3, level 1?", the correct answer is "<Output> green".<Output> green12345The input contains 3 blocks in 2 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a orange block.- Stack 2 has 2 level. From bottom to top: level 1 has an blue block, level 2 has an purple block,As such, for the question "What is the color of the block at stack 2, level 1?", the correct answer is "<Output> blue".<Output> blue123456The input contains 3 blocks in 3 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a orange block.- Stack 2 has 1 level.Level 1 has a green block.- Stack 3 has 1 level.Level 1 has a yellow block.As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> orange".<Output> orange123- Stack with red block- Stack with orange block- Stack with purple block1- Stack with orange block, yellow block, red block, from bottom to top1- Stack with red block, blue block, orange block, from bottom to top123- Stack with blue block- Stack with orange block- Stack with yellow block123- Stack with orange block- Stack with green block- Stack with blue block123- Stack with purple block- Stack with blue block- Stack with green block12- Stack with orange block- Stack with blue block, purple block, from bottom to top123- Stack with orange block- Stack with green block- Stack with yellow block12 | Stack 1 | Stack 2 | Stack 3 |Level 1 | red | orange | purple |1234 | Stack 1 |Level 3 | red |Level 2 | yellow |Level 1 | orange |1234 | Stack 1 |Level 3 | orange |Level 2 | blue |Level 1 | red |12 | Stack 1 | Stack 2 | Stack 3 |Level 1 | blue | orange | yellow |12 | Stack 1 | Stack 2 | Stack 3 |Level 1 | orange | green | blue |12 | Stack 1 | Stack 2 | Stack 3 |Level 1 | purple | blue | green |123 | Stack 1 | Stack 2 |Level 2 | | purple |Level 1 | orange | blue |12 | Stack 1 | Stack 2 | Stack 3 |Level 1 | orange | green | yellow |1What is the color of the block at stack 3, level 1?1What is the color of the block at stack 1, level 1?1What is the color of the block at stack 1, level 3?1What is the color of the block at stack 3, level 1?1What is the color of the block at stack 3, level 1?1What is the color of the block at stack 3, level 1?1What is the color of the block at stack 2, level 1?1What is the color of the block at stack 1, level 1?12345678greenpurpleyellowredredredyellowgreen12345The input contains 4 blocks in 2 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a green block.- Stack 2 has 3 level. From bottom to top: level 1 has an red block, level 2 has an orange block, level 3 has an blue block,As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> green".<Output> green1234567The input contains 4 blocks in 4 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a yellow block.- Stack 2 has 1 level.Level 1 has a orange block.- Stack 3 has 1 level.Level 1 has a green block.- Stack 4 has 1 level.Level 1 has a purple block.As such, for the question "What is the color of the block at stack 4, level 1?", the correct answer is "<Output> purple".<Output> purple1234The input contains 4 blocks in 1 stacks. From left to right:- Stack 1 has 4 level. From bottom to top: level 1 has an yellow block, level 2 has an blue block, level 3 has an green block, level 4 has an red block,As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> yellow".<Output> yellow12345The input contains 4 blocks in 2 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a red block.- Stack 2 has 3 level. From bottom to top: level 1 has an orange block, level 2 has an green block, level 3 has an purple block,As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> red".<Output> red12345The input contains 4 blocks in 2 stacks. From left to right:- Stack 1 has 1 level.Level 1 has a red block.- Stack 2 has 3 level. From bottom to top: level 1 has an orange block, level 2 has an purple block, level 3 has an green block,As such, for the question "What is the color of the block at stack 1, level 1?", the correct answer is "<Output> red".<Output> red.DS_StoreAdded
blocks/.DS_StoreAdded
blocks/task1/eval.pyAdded+40
blocks/task1/example/level3/annotation.txtAdded+8
blocks/task1/example/level3/answer/0.txtAdded+6
blocks/task1/example/level3/answer/1.txtAdded+4
blocks/task1/example/level3/answer/2.txtAdded+4
blocks/task1/example/level3/answer/3.txtAdded+6
blocks/task1/example/level3/answer/4.txtAdded+6
blocks/task1/example/level3/answer/5.txtAdded+6
blocks/task1/example/level3/answer/6.txtAdded+5
blocks/task1/example/level3/answer/7.txtAdded+6
blocks/task1/example/level3/image_input/0.jpgAdded

Large File Pointer Details
- SHA256: 16bbf31e502cad4101223d7bec561ff7dfb8e2be926a8aa4de7076ecf8e0f1be
- Pointer size: 130 Bytes
- Size of remote file: 10.3 kB
blocks/task1/example/level3/image_input/1.jpgAdded

Large File Pointer Details
- SHA256: 793306fae96b18f69efe75779947de2809fd12f65c2bdc6aa42e95b4797398f2
- Pointer size: 129 Bytes
- Size of remote file: 8.94 kB
blocks/task1/example/level3/image_input/2.jpgAdded

Large File Pointer Details
- SHA256: 18d55c01f4b8bc110e03829e1f6305b9cda18a548fc539272f361f50b27deb5d
- Pointer size: 129 Bytes
- Size of remote file: 8.72 kB
blocks/task1/example/level3/image_input/3.jpgAdded

Large File Pointer Details
- SHA256: 4e13a152d5e2101ce4f0f70d8d6ccabff48d9012328d904a5bfd936b11a3267a
- Pointer size: 129 Bytes
- Size of remote file: 9.61 kB
blocks/task1/example/level3/image_input/4.jpgAdded

Large File Pointer Details
- SHA256: 1627db8c80699b79b8ffbd8f344d2e520d4cc92a584187f60d183c66b8018189
- Pointer size: 129 Bytes
- Size of remote file: 8.86 kB
blocks/task1/example/level3/image_input/5.jpgAdded

Large File Pointer Details
- SHA256: 06c248a760842eeba06ebd63b867116bb2f62af29098ba8c27829918258a09b4
- Pointer size: 129 Bytes
- Size of remote file: 9.33 kB
blocks/task1/example/level3/image_input/6.jpgAdded

Large File Pointer Details
- SHA256: eecd3e71a417f1bc80b48371b25034ee8d0953ed6cf6283ee26ce30cc15d5f04
- Pointer size: 130 Bytes
- Size of remote file: 10.7 kB
blocks/task1/example/level3/image_input/7.jpgAdded

Large File Pointer Details
- SHA256: ed8e3af63c07731af06aff7904beaf6da5d1adfe44733b208d6c7f776f90db9a
- Pointer size: 129 Bytes
- Size of remote file: 9.61 kB
blocks/task1/example/level3/pure_text_rep_input/0.txtAdded+3
blocks/task1/example/level3/pure_text_rep_input/1.txtAdded+1
blocks/task1/example/level3/pure_text_rep_input/2.txtAdded+1
blocks/task1/example/level3/pure_text_rep_input/3.txtAdded+3
blocks/task1/example/level3/pure_text_rep_input/4.txtAdded+3
blocks/task1/example/level3/pure_text_rep_input/5.txtAdded+3
blocks/task1/example/level3/pure_text_rep_input/6.txtAdded+2
blocks/task1/example/level3/pure_text_rep_input/7.txtAdded+3
blocks/task1/example/level3/table_rep_input/0.txtAdded+2
blocks/task1/example/level3/table_rep_input/1.txtAdded+4
blocks/task1/example/level3/table_rep_input/2.txtAdded+4
blocks/task1/example/level3/table_rep_input/3.txtAdded+2
blocks/task1/example/level3/table_rep_input/4.txtAdded+2
blocks/task1/example/level3/table_rep_input/5.txtAdded+2
blocks/task1/example/level3/table_rep_input/6.txtAdded+3
blocks/task1/example/level3/table_rep_input/7.txtAdded+2
blocks/task1/example/level3/text_input/0.txtAdded+1
blocks/task1/example/level3/text_input/1.txtAdded+1
blocks/task1/example/level3/text_input/2.txtAdded+1
blocks/task1/example/level3/text_input/3.txtAdded+1
blocks/task1/example/level3/text_input/4.txtAdded+1
blocks/task1/example/level3/text_input/5.txtAdded+1
blocks/task1/example/level3/text_input/6.txtAdded+1
blocks/task1/example/level3/text_input/7.txtAdded+1
blocks/task1/example/level4/annotation.txtAdded+8
blocks/task1/example/level4/answer/0.txtAdded+5
blocks/task1/example/level4/answer/1.txtAdded+7
blocks/task1/example/level4/answer/2.txtAdded+4
blocks/task1/example/level4/answer/3.txtAdded+5
blocks/task1/example/level4/answer/4.txtAdded+5