Update data: 5 units
Browse files- health_medicine/simglucose_safe_basal_control_instance_1/base/software
- health_medicine/wsi_tumor_localization_1/bounding_box/input
- legal/agora_governance_classify_instance_1/base/input
- legal/agora_governance_classify_instance_1/base/software
- legal/legal_dr_fees_01/base/input
- tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/software/README.md +6 -0
- tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/runtime_env/pyproject.toml +10 -0
- tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/tumor_001.tif +3 -0
- tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/wsi_tools.py +50 -0
- tasks/legal/agora_governance_classify_instance_1/base/software/README.txt +1 -0
- tasks/legal/agora_governance_classify_instance_1/base/software/python +3 -0
- tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会案件退费标准》.pdf +0 -0
- tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会调仲对接快速程序规则撤案退费标准》.pdf +0 -0
- tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会调仲对接快速程序规则案件收费标准》.pdf +0 -0
tasks/health_medicine/simglucose_safe_basal_control_instance_1/base/software/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Software Notes
|
| 2 |
+
|
| 3 |
+
This task does not require benchmark-owned GUI software.
|
| 4 |
+
|
| 5 |
+
Agent-facing runtime truth lives under `input/runtime_env/`.
|
| 6 |
+
The public Docker reproduction path lives under `input/public/runtime/`.
|
tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/runtime_env/pyproject.toml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "wsi-tumor-localization-runtime"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
requires-python = ">=3.10"
|
| 5 |
+
dependencies = [
|
| 6 |
+
"numpy>=1.26,<3",
|
| 7 |
+
"openslide-python>=1.3,<2",
|
| 8 |
+
"pillow>=10,<13",
|
| 9 |
+
"shapely>=2,<3",
|
| 10 |
+
]
|
tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/tumor_001.tif
ADDED
|
|
Git LFS Details
|
tasks/health_medicine/wsi_tumor_localization_1/bounding_box/input/wsi_tools.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import openslide
|
| 3 |
+
import numpy as np
|
| 4 |
+
from PIL import Image
|
| 5 |
+
import time
|
| 6 |
+
|
| 7 |
+
class WSINavigationEnvironment:
|
| 8 |
+
"""Pre-built tool interface for agent WSI navigation."""
|
| 9 |
+
|
| 10 |
+
def __init__(self, wsi_path):
|
| 11 |
+
self.slide = openslide.OpenSlide(wsi_path)
|
| 12 |
+
self.dimensions = self.slide.dimensions
|
| 13 |
+
self.level_count = self.slide.level_count
|
| 14 |
+
self.call_log = []
|
| 15 |
+
|
| 16 |
+
def get_slide_metadata(self):
|
| 17 |
+
self._log('get_slide_metadata', {})
|
| 18 |
+
return {
|
| 19 |
+
'dimensions_level0': self.dimensions,
|
| 20 |
+
'level_count': self.level_count,
|
| 21 |
+
'level_dimensions': {i: self.slide.level_dimensions[i] for i in range(self.level_count)},
|
| 22 |
+
'level_downsamples': {i: self.slide.level_downsamples[i] for i in range(self.level_count)},
|
| 23 |
+
'mpp': self.slide.properties.get('openslide.mpp-x', 'unknown'),
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
def get_thumbnail(self, size=1024):
|
| 27 |
+
self._log('get_thumbnail', {'size': size})
|
| 28 |
+
return self.slide.get_thumbnail((size, size))
|
| 29 |
+
|
| 30 |
+
def read_region(self, x, y, width, height, level=0):
|
| 31 |
+
x = max(0, min(x, self.dimensions[0]-1))
|
| 32 |
+
y = max(0, min(y, self.dimensions[1]-1))
|
| 33 |
+
level = max(0, min(level, self.level_count-1))
|
| 34 |
+
self._log('read_region', {'x':x,'y':y,'width':width,'height':height,'level':level})
|
| 35 |
+
return self.slide.read_region((x,y), level, (width,height))
|
| 36 |
+
|
| 37 |
+
def get_tissue_mask(self, level=-1):
|
| 38 |
+
if level == -1: level = self.level_count - 1
|
| 39 |
+
level = max(0, min(level, self.level_count-1))
|
| 40 |
+
self._log('get_tissue_mask', {'level': level})
|
| 41 |
+
dims = self.slide.level_dimensions[level]
|
| 42 |
+
thumb = self.slide.read_region((0,0), level, dims)
|
| 43 |
+
gray = np.mean(np.array(thumb.convert("RGB")), axis=2)
|
| 44 |
+
return ((gray < 220) & (gray > 10)).astype(np.uint8)
|
| 45 |
+
|
| 46 |
+
def _log(self, name, params):
|
| 47 |
+
self.call_log.append({'tool':name,'params':params,'timestamp':time.time()})
|
| 48 |
+
|
| 49 |
+
def close(self):
|
| 50 |
+
self.slide.close()
|
tasks/legal/agora_governance_classify_instance_1/base/software/README.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
No special licensed software is required. The stable optional Python helper is software/python; standard text/JSON tools are already present on the VM. A browser is optional because the public documents are cached under input/documents/.
|
tasks/legal/agora_governance_classify_instance_1/base/software/python
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
exec /opt/cua-server/.venv/bin/python "$@"
|
tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会案件退费标准》.pdf
CHANGED
|
Binary files "a/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\346\241\210\344\273\266\351\200\200\350\264\271\346\240\207\345\207\206\343\200\213.pdf" and "b/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\346\241\210\344\273\266\351\200\200\350\264\271\346\240\207\345\207\206\343\200\213.pdf" differ
|
|
|
tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会调仲对接快速程序规则撤案退费标准》.pdf
CHANGED
|
Binary files "a/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\350\260\203\344\273\262\345\257\271\346\216\245\345\277\253\351\200\237\347\250\213\345\272\217\350\247\204\345\210\231\346\222\244\346\241\210\351\200\200\350\264\271\346\240\207\345\207\206\343\200\213.pdf" and "b/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\350\260\203\344\273\262\345\257\271\346\216\245\345\277\253\351\200\237\347\250\213\345\272\217\350\247\204\345\210\231\346\222\244\346\241\210\351\200\200\350\264\271\346\240\207\345\207\206\343\200\213.pdf" differ
|
|
|
tasks/legal/legal_dr_fees_01/base/input/documents/《北京仲裁委员会调仲对接快速程序规则案件收费标准》.pdf
CHANGED
|
Binary files "a/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\350\260\203\344\273\262\345\257\271\346\216\245\345\277\253\351\200\237\347\250\213\345\272\217\350\247\204\345\210\231\346\241\210\344\273\266\346\224\266\350\264\271\346\240\207\345\207\206\343\200\213.pdf" and "b/tasks/legal/legal_dr_fees_01/base/input/documents/\343\200\212\345\214\227\344\272\254\344\273\262\350\243\201\345\247\224\345\221\230\344\274\232\350\260\203\344\273\262\345\257\271\346\216\245\345\277\253\351\200\237\347\250\213\345\272\217\350\247\204\345\210\231\346\241\210\344\273\266\346\224\266\350\264\271\346\240\207\345\207\206\343\200\213.pdf" differ
|
|
|