Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: fps and nframe should be set at least one valid value #754

Open
aimanu opened this issue Jan 27, 2025 · 2 comments
Open

ValueError: fps and nframe should be set at least one valid value #754

aimanu opened this issue Jan 27, 2025 · 2 comments
Assignees

Comments

@aimanu
Copy link

aimanu commented Jan 27, 2025

Hi,

My config is as follows:

{
    "model": {
        "deepseek_vl_1.3b": {
            "class": "DeepSeekVL",
            "model": "deepseek-vl-1.3b-chat"
        },
        "Qwen2-VL-7B-Instruct": {
            "class": "Qwen2VLChat",
            "model_path": "/lpai/volumes/profile-vehicle-control-vol/model/Qwen/Qwen2-VL-7B-Instruct"
        }
    },
    "data": {
        "MME-RealWorld-Lite": {
            "class": "MMERealWorld",
            "dataset": "MME-RealWorld-Lite",
            "nframe" :1,
            "fps":1
        }
    }
}

It gave the error saying "
[2025-01-27 02:05:51,584] ERROR - RUN - run.py: main - 416: Model Qwen2-VL-7B-Instruct x Dataset MME-RealWorld-Lite combination failed: fps and nframe should be set at least one valid value, skipping this combination.
Traceback (most recent call last):
File "/lpai/VLMEvalKit/run.py", line 222, in main
dataset = build_dataset_from_config(cfg['data'], dataset_name)
File "/lpai/VLMEvalKit/run.py", line 45, in build_dataset_from_config
raise ValueError('fps and nframe should be set at least one valid value')
ValueError: fps and nframe should be set at least one valid value
[2025-01-27 02:05:51] ERROR - run.py: main - 416: Model Qwen2-VL-7B-Instruct x Dataset MME-RealWorld-Lite combination failed: fps and nframe should be set at least one valid value, skipping this combination.
Traceback (most recent call last):
File "/lpai/VLMEvalKit/run.py", line 222, in main
dataset = build_dataset_from_config(cfg['data'], dataset_name)
File "/lpai/VLMEvalKit/run.py", line 45, in build_dataset_from_config
raise ValueError('fps and nframe should be set at least one valid value')
ValueError: fps and nframe should be set at least one valid value
root@lx-dev-0:/lpai#
"
I also tried the dataset config without "nframe" and "fps" parameter, the error is same.

Please help with this issue. Thanks.

@FangXinyu-0913
Copy link
Collaborator

Hi @aimanu, MME-RealWorld-Lite is not a video dataset, so you do not need to pass nframe or fps argument in the config.
You can take the config below to have a try:

{
    "model": {
        "deepseek_vl_1.3b": {
            "class": "DeepSeekVL",
            "model": "deepseek-vl-1.3b-chat"
        },
        "Qwen2-VL-7B-Instruct": {
            "class": "Qwen2VLChat",
            "model_path": "/lpai/volumes/profile-vehicle-control-vol/model/Qwen/Qwen2-VL-7B-Instruct"
        }
    },
    "data": {
        "MME-RealWorld-Lite": {
            "class": "MMERealWorld",
            "dataset": "MME-RealWorld-Lite"
        }
    }
}

@FangXinyu-0913 FangXinyu-0913 self-assigned this Jan 27, 2025
@aimanu
Copy link
Author

aimanu commented Feb 6, 2025

Hi @aimanu, MME-RealWorld-Lite is not a video dataset, so you do not need to pass nframe or fps argument in the config. You can take the config below to have a try:

{
    "model": {
        "deepseek_vl_1.3b": {
            "class": "DeepSeekVL",
            "model": "deepseek-vl-1.3b-chat"
        },
        "Qwen2-VL-7B-Instruct": {
            "class": "Qwen2VLChat",
            "model_path": "/lpai/volumes/profile-vehicle-control-vol/model/Qwen/Qwen2-VL-7B-Instruct"
        }
    },
    "data": {
        "MME-RealWorld-Lite": {
            "class": "MMERealWorld",
            "dataset": "MME-RealWorld-Lite"
        }
    }
}

@FangXinyu-0913 Thanks for the reply. Actually I have tried that configuration. It raised an error telling "ValueError: fps and nframe should be set at least one valid value".
The whole information is as follows:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants