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

evaluate problem #27

Open
a2801603396 opened this issue May 24, 2023 · 5 comments
Open

evaluate problem #27

a2801603396 opened this issue May 24, 2023 · 5 comments

Comments

@a2801603396
Copy link

When I run test.py, I will report an error: TypeError: string indices must be integers
In the following code:

    for result in results:
        !!self.metrics.add_batch(result['y_pred'], result['y_true'])!!
    metric_prefix = f'{result_name}_SemanticKITTI'

In semantic_kitti_dataset_stage2.py and semantic_kitti_dataset_stage1.py. The function is “evaluate”.

Whether it's me testing qpn or voxformer-S, this error occurred in the same location.

@a2801603396
Copy link
Author

The first result is a string with the content 'y_ pred’。 Results is a list that alternates between 'y_ pred' and 'y_true'.

@a2801603396
Copy link
Author

How much memory did you use during the testing?I ran out of 16GB of memory and the verification set was full of memory.The test set is even more difficult to run.

@RoboticsYimingLi
Copy link
Contributor

Please follow our tutorial exactly https://github.com/NVlabs/VoxFormer/blob/main/docs/getting_started.md. Thank you!

@RoboticsYimingLi
Copy link
Contributor

Thank you for your interest in our paper. Please make sure to follow our tutorial exactly and use the dist_test.sh script to obtain evaluation results.

@Made-Gpt
Copy link

Made-Gpt commented Jan 5, 2024

When I run test.py, I will report an error: TypeError: string indices must be integers In the following code:

    for result in results:
        !!self.metrics.add_batch(result['y_pred'], result['y_true'])!!
    metric_prefix = f'{result_name}_SemanticKITTI'

In semantic_kitti_dataset_stage2.py and semantic_kitti_dataset_stage1.py. The function is “evaluate”.

Whether it's me testing qpn or voxformer-S, this error occurred in the same location.

I also have this problem, it occurs when I was trying to run test with one GPU, I change the dist_test.sh:
`CONFIG=$1
CHECKPOINT=$2
PORT=${PORT:-29503}

PYTHONPATH="$(dirname $0)/..":$PYTHONPATH
python -m torch.distributed.launch --master_port=$PORT
$(dirname "$0")/test.py $CONFIG $CHECKPOINT --eval bbox`

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

3 participants