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

Kar2019-ost benchmark card throws a Server Error (500) #376

Open
KartikP opened this issue Feb 4, 2025 · 0 comments
Open

Kar2019-ost benchmark card throws a Server Error (500) #376

KartikP opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@KartikP
Copy link
Contributor

KartikP commented Feb 4, 2025

Appears to be due to the abundance of NaN values under the benchmark.

Specifically, representative_color(score_row.score_raw, min_value=benchmark_min, max_value=benchmark_max) is attempting to convert a NaN value into an integer.

Probably related to this is that the sort dropdown menu for Kar2019-ost benchmark does not work.

Environment:


Request Method: GET
Request URL: http://localhost:8000/benchmark/vision/50

Django Version: 4.2.18
Python Version: 3.8.19
Installed Applications:
['benchmarks.apps.BenchmarksConfig',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'compressor']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "/opt/anaconda3/envs/web/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/opt/anaconda3/envs/web/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/kartik/MIT/brain-score.web/benchmarks/views/benchmark.py", line 52, in view
    color=representative_color(score_row.score_raw, min_value=benchmark_min, max_value=benchmark_max),
  File "/Users/kartik/MIT/brain-score.web/benchmarks/views/index.py", line 652, in representative_color
    step = int(100 * normalized_value)

Exception Type: ValueError at /benchmark/vision/50
Exception Value: cannot convert float NaN to integer

@KartikP KartikP added the bug Something isn't working label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant