Evaluation code for LIBERO
Hi,
Thanks and congratulations on this excellent work! Just wondering if there’s any chance you could release the evaluation code used for Libero testing?
Really appreciate it—thanks in advance!
Hi, I've supplemented the Libero testing section. Here's the code, and I hope it will be helpful to you. https://github.com/Yysrc/nora_libero
I have tested two different approaches, but neither achieves the accuracy reported in the LIBERO paper:
-
Training on
nora-longmodel using the modified LIBERO-Object dataset provided by OpenVLA.- Accuracy achieved: 84.0%
-
Testing the pretrained model
declare-lab/nora-long-finetuned-libero-object.- Accuracy achieved: Only 67.0%
Both tests were conducted using the official evaluation script from OpenVLA.
@Yysrc Could you share the results you've achieved when running these models?
Hi, I've supplemented the Libero testing section. Here's the code, and I hope it will be helpful to you. https://github.com/Yysrc/nora_libero
Hi @AndersonYu7 , thank you so much for your code! Can I ask what unnorm_key you use for testing? I tried to use "libero_spatial" but it wasn't found in the model, and the default "bridge_orig" unnorm_key just didn't work well.
Tagging @hungchiayu1 to solve these issues asap.
I will release the evaluation code i used to run for LIBERO soon and upload the unnorm_keys for libero. @Cheny4ng Meanwhile, you can also get the correct norm stats from https://huggingface.co/openvla/openvla-7b-finetuned-libero-10/blob/main/dataset_statistics.json
@AndersonYu7 @Cheny4ng I have just reran using my libero eval for this checkpoint declare-lab/nora-long-finetuned-libero-object. I was able to replicate the original result in the paper 95.2% acc. Could you check experiments/libero/run_libero_eval_nora.py and see if you are able to replicate my result using this script? The script is adopted from OpenVLA's implementation with some slight changes
@hungchiayu1
I re-ran the evaluation using your script experiments/libero/run_libero_eval_nora.py on:
- the checkpoint
declare-lab/nora-long-finetuned-libero-object - my own fine-tuned checkpoint
I observed 67.2% and 84.0%, which are similar to the results I previously obtained. Full logs are attached for inspection.
EVAL-libero_object-qwen-2025_08_02-20_00_22.txt EVAL-libero_object-qwen-2025_08_03-18_31_57.txt
The repository does not include libero_utils.py and robot_utils.py, so to get the script to run I copied those two modules from the OpenVLA-OFT and made some adjustments to make them compatible with this evaluation script.
libero_utils.txt robot_utils.txt run_libero_eval_nora.txt
During the evaluation I also saw two non-fatal issues that might subtly affect the reported accuracy:
-
Repeated warning:
This indicates the tokenizer did not have an explicit pad token, so it fell back to using the EOS token.
-
A detokenization-related problem.
Although these issues don’t prevent the run from completing, could they be affecting the reported results? Is this a bug in the evaluation code, or caused by my configuration / the substitutions I made? Thanks!
@AndersonYu7 Hi Anderson, I met the same second problem with you. I also tried the other task and the pretrained model (e.g., nora-finetuned-libero-spatial), the same thing happened with even worse output:
Did you find any possible solutions?
Let me look into this. Give me awhile. Btw are you able to replicate openvla's performance with your code?
@jiuyixu25 For your output it seems like u did not set the tokenizer time_horizon correctly. nora-finetuned-libero-spatial should generate an action horizon of 1 instead of 5, therefore you are getting this warning. To generate an action horizon of 5, you should use the nora-long-finetuned-libero-spatial checkpoint.
@AndersonYu7 Can i check what is your transformer and torch version?
Sure, here are the versions I’m using:
transformers 4.54.1
torch 2.7.1+cu118
torchvision 0.22.1+cu118
@AndersonYu7 Hmm, this is weird, I was able to replicate the result on my side with your transformer versions. Can I check if you are inferencing in bf16 and with flash-attn or sdpa. I suspect there is some precision issue going on somewhere.
Can I check if you are inferencing in bf16 and with flash-attn or sdpa
Ya, I’m inferencing in bf16 and not using flash-attn (SDPA only).
Regarding the Error decoding issue:
Error decoding tokens: cannot reshape array of size 33 into shape (7)
Tokens: [271, 326, 340, 372, 271, 326, 1512, 1683, 297, 803, 333, 258]
Although it doesn’t crash the run, whenever this “error decoding” appears, that episode has a high chance of failing. From this Hugging Face discussion, it seems such decoding errors might result in the model returning an all-zero action. Have you encountered the same issue on your side?
@hungchiayu1 Hi, Could you please provide the videos for the following task and episodes?
Task: pick up the alphabet soup and place it in the basket Episodes: 3, 5, 7
I consistently observe failures in these episodes, so having the videos would help me better understand what’s going wrong.
Thanks a lot!
@AndersonYu7 https://github.com/user-attachments/assets/fd2048cc-9ba4-4f2a-bb2f-ec9a36616ccd https://github.com/user-attachments/assets/d14b4bc9-d17c-4494-968e-19af2680b17d https://github.com/user-attachments/assets/cc414711-24cf-4658-8b87-895fe8466ec6
Here are the videos, but for my case all these are successful trials, so I m not sure if it will benefit you.
Regarding the decoding issues, I ran into that issue during my evaluation too, I dont think it affects the final result. The 'error decoding' you observed may not be the root cause of the failure. It's possible the robot was already in a failing state, which is (OOD) relative to the training data. This OOD state could then have led to the decoding error as a symptom, rather than the cause, of the underlying problem.
By the way, are you able to replicate OpenVLA's performance in your setup? I was able to do so
I think this may bring the problem since I cannot reproduce OpenVLA's performance on the LIBERO-object task, either. I can reproduce Nora's and OpenVLA's performance on both LIBERO Spatial and Goal. May I ask what may bring this problem? Or how can you replicate OpenVLA's performance since there are many people have the same issue on reproducing OpenVLA's performance on LIBERO-object task (see [https://github.com/openvla/openvla/issues/282]). Thanks for your help in advance.
@jiuyixu25 Could it be this issue? https://github.com/Lifelong-Robot-Learning/LIBERO/issues/88
Will try this and share the results later. Thanks :)
"pip install mujoco==3.3.2" works. Appreciate it!!!