Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I recently tried this repo for benchmarking my local Milvus deployment. Once I tested a basic run to check everything was OK, I wanted to run the benchmark on a dataset I was using Glove. I prepared and adapted all the files required, in the specific format as your README.md says.
I run the following command:
Which returns the following error:
It turns out that custom_configs in
return type2case.get(self)(**custom_configs)
(which corresponds totask.case_config.custom_case
) is an empty dictionary. That's because of an error when creating the 'task' variable in cli.py file, on line 471.This line sets
custom_case
to an empty dictionary, since there is no "custom_case" key on the arguments. In fact, there is an unusedget_custom_case_config()
function that takes the parameters variable and, ifcase_type
is specified as a custom dataset, it does collect 'name', 'description', 'load_timeout', 'optimize_timeout', and other dataset configuration values into a dictionary, which is what is needed in this case.Changing this in the code makes the tool work fine: