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

'>=' not supported between instances of 'int' and 'str' #1357

Closed
1 of 2 tasks
onefanwu opened this issue Nov 14, 2023 · 1 comment
Closed
1 of 2 tasks

'>=' not supported between instances of 'int' and 'str' #1357

onefanwu opened this issue Nov 14, 2023 · 1 comment

Comments

@onefanwu
Copy link

onefanwu commented Nov 14, 2023

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

ERROR [plan_executor:plan_executor.py:execute_plan:0179] '>=' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File ".../evadb/executor/plan_executor.py", line 175, in execute_plan
    yield from output
  File ".../evadb/executor/exchange_executor.py", line 101, in exec
    raise res
evadb.executor.executor_utils.ExecutorError: '>=' not supported between instances of 'int' and 'str'

When I execute the following queries, I get the above error, if ray is not turned on it executes fine.

SET ray="True";
SET gpu_ids="[0, 1, 2, 3, 4, 5, 6, 7]";
SET batch_mem_size="300000";

DROP TABLE IF EXISTS NightStreet;

LOAD VIDEO 'benchmark/datasets/video/night-street.mp4'
INTO NightStreet;

DROP TABLE IF EXISTS Yolo;

CREATE FUNCTION IF NOT EXISTS Yolo
TYPE  ultralytics
MODEL 'benchmark/models/yolov8x.pt';

SELECT id, Yolo(data).labels
FROM NightStreet
WHERE ['person', 'car'] <@ Yolo(data).labels
LIMIT 5;

Environment

  • EvaDB v0.3.8

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@onefanwu
Copy link
Author

I have solved it, I was incorrectly using str values for the assignment when setting ray and batch_mem_size.

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

1 participant