load libreoffice writer eval -batch 2

This commit is contained in:
tsuky_chen
2024-01-26 02:15:42 +08:00
99 changed files with 4318 additions and 109 deletions

View File

@@ -104,6 +104,9 @@ class DesktopEnv(gym.Env):
self.action_history: List[Dict[str, any]] = []
def _config_screen_size(self):
"""
fixme: Experimental features, will cause unexpected error when system corrupt
"""
def calculate_vram_size(width, height, bits_per_pixel=32):
"""
Calculate VRAM size for given width, height, and color depth.
@@ -210,7 +213,7 @@ class DesktopEnv(gym.Env):
self.cache_dir: str = os.path.join(self.cache_dir_base, self.task_id)
os.makedirs(self.cache_dir, exist_ok=True)
self.instruction = task_config["instruction"]
self.config = task_config["config"]
self.config = task_config["config"] if "config" in task_config else []
# evaluator dict
# func -> metric function string, or list of metric function strings