MCPcopy Create free account
hub / github.com/CIawevy/TextPecker / parse_args

Function parse_args

eval/OneIG-Benchmark/scripts/utils/utils.py:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7Image.MAX_IMAGE_PIXELS = None
8
9def parse_args():
10 parser = argparse.ArgumentParser(description="Run alignment score evaluation.")
11 parser.add_argument("--mode", type=str, default="EN", help="Choose language mode.")
12 parser.add_argument("--image_dirname", type=str, default="images", help="Directory containing images.")
13 parser.add_argument("--model_names", type=str, nargs="+", default=["gpt-4o"], help="List of model names.")
14 parser.add_argument("--image_grid", type=int, nargs="+", default=[2], help="List of image grids.")
15 parser.add_argument("--class_items", type=str, nargs="+", default=["anime", "human", "object"], help="List of class items.")
16 return parser.parse_args()
17
18def is_black_image(image):
19 pixels = image.load()

Callers 5

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected