Commit
·
64e0d0d
1
Parent(s):
81d1dbe
init
Browse files- .gitignore +2 -0
- README.md +14 -0
- medvqa.egg-info/PKG-INFO +3 -0
- medvqa.egg-info/SOURCES.txt +9 -0
- medvqa.egg-info/dependency_links.txt +1 -0
- medvqa.egg-info/entry_points.txt +2 -0
- medvqa.egg-info/top_level.txt +1 -0
- medvqa/__init__.py +1 -0
- medvqa/cli.py +18 -0
- medvqa/gi-2025/task1/run.py +20 -0
- medvqa/gi-2025/task2/run.py +7 -0
- setup.py +15 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.venv
|
2 |
+
build
|
README.md
CHANGED
@@ -1 +1,15 @@
|
|
1 |
# MedVQA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# MedVQA
|
2 |
+
|
3 |
+
A CLI tool for MedVQA competition.
|
4 |
+
|
5 |
+
## Installation
|
6 |
+
|
7 |
+
```bash
|
8 |
+
pip install medvqa
|
9 |
+
```
|
10 |
+
|
11 |
+
## Usage
|
12 |
+
|
13 |
+
```bash
|
14 |
+
medvqa competition=gi-2025 task=1 submission_repo="xxx"
|
15 |
+
```
|
medvqa.egg-info/PKG-INFO
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
Metadata-Version: 2.2
|
2 |
+
Name: medvqa
|
3 |
+
Version: 0.1
|
medvqa.egg-info/SOURCES.txt
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
README.md
|
2 |
+
setup.py
|
3 |
+
medvqa/__init__.py
|
4 |
+
medvqa/cli.py
|
5 |
+
medvqa.egg-info/PKG-INFO
|
6 |
+
medvqa.egg-info/SOURCES.txt
|
7 |
+
medvqa.egg-info/dependency_links.txt
|
8 |
+
medvqa.egg-info/entry_points.txt
|
9 |
+
medvqa.egg-info/top_level.txt
|
medvqa.egg-info/dependency_links.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
|
medvqa.egg-info/entry_points.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[console_scripts]
|
2 |
+
medvqa = medvqa.cli:main
|
medvqa.egg-info/top_level.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
medvqa
|
medvqa/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# This file can be empty or contain package initialization code
|
medvqa/cli.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
def main():
|
5 |
+
print("MedVQA CLI")
|
6 |
+
parser = argparse.ArgumentParser(description='MedVQA CLI')
|
7 |
+
parser.add_argument('competition', type=str, help='Name of the competition (e.g., gi-2025)')
|
8 |
+
parser.add_argument('task', type=int, choices=[1, 2], help='Task number (1 or 2)')
|
9 |
+
parser.add_argument('submission_repo', type=str, help='Path to the submission repository')
|
10 |
+
|
11 |
+
args = parser.parse_args()
|
12 |
+
|
13 |
+
script_path = f'medvqa/{args.competition}/task{args.task}/run.py'
|
14 |
+
|
15 |
+
subprocess.run(['python', script_path, args.submission_repo])
|
16 |
+
|
17 |
+
if __name__ == '__main__':
|
18 |
+
main()
|
medvqa/gi-2025/task1/run.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
import argparse
|
3 |
+
|
4 |
+
|
5 |
+
def get_parser():
|
6 |
+
parser = argparse.ArgumentParser(description='Task 1 specific arguments')
|
7 |
+
parser.add_argument('--example_arg', type=str,
|
8 |
+
help='An example argument for Task 1')
|
9 |
+
return parser
|
10 |
+
|
11 |
+
|
12 |
+
def main(submission_repo, example_arg):
|
13 |
+
print(
|
14 |
+
f"Running GI-2025 Task 1 with repository: {submission_repo} and example_arg: {example_arg}")
|
15 |
+
|
16 |
+
|
17 |
+
if __name__ == '__main__':
|
18 |
+
parser = get_parser()
|
19 |
+
args = parser.parse_args()
|
20 |
+
main(args.submission_repo, args.example_arg)
|
medvqa/gi-2025/task2/run.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
|
3 |
+
def main(repo):
|
4 |
+
print(f"Running GI-2025 Task 2 with repository: {repo}")
|
5 |
+
|
6 |
+
if __name__ == '__main__':
|
7 |
+
main(sys.argv[1])
|
setup.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from setuptools import setup, find_packages
|
2 |
+
|
3 |
+
setup(
|
4 |
+
name='medvqa',
|
5 |
+
version='0.1',
|
6 |
+
packages=find_packages(),
|
7 |
+
entry_points={
|
8 |
+
'console_scripts': [
|
9 |
+
'medvqa=medvqa.cli:main',
|
10 |
+
],
|
11 |
+
},
|
12 |
+
install_requires=[
|
13 |
+
# Add your dependencies here
|
14 |
+
],
|
15 |
+
)
|