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

Unable to run experiments #26

Open
tsagkas opened this issue May 27, 2024 · 1 comment
Open

Unable to run experiments #26

tsagkas opened this issue May 27, 2024 · 1 comment

Comments

@tsagkas
Copy link

tsagkas commented May 27, 2024

Intro

Thank you very much for sharing your code. However, I have a lot of issues with installing eai-vc and I was unable to run the experiments. To help you read this GH Issue faster, I have divided it into two parts.

  • First, I will share the issues I had with the installation.
  • Second, I will present the problems that came up when running the experiments.

I apologize in advance if I missed something in either the mujoco or the hydra part of the code, since these are tools I have never utilized before.

Some additional info about my setup:

  • Ubuntu 22.04
  • CUDA 12.1
  • python 3.8.18

EAI-VC Installation Issues

To install eai-vc I followed the process described at installation.md to the letter (and have repeated the process a few times now to make sure I did not miss anything). Verifying my installation with the provided pytest, I get two major errors:

(1) dmc2gym version problem

AttributeError: 'MjModel' object has no attribute 'eq_active'

According to other relevant issues I found online (e.g., here), this can be solved either by downgrading mujoco to 2.3.* or upgrading dm_control from 1.0.5 to 1.0.16. Even though I tried both (without luck), let's consider for now that I follow the latter path, so that I don't mess with the other tasks, which might not like mujoco 2.3.*.

Screenshot from 2024-05-27 15-51-19

(2) mjrl, mj_envs incompatible with cython 3

Error compiling Cython file:
------------------------------------------------------------
...
    See c_warning_callback, which is the C wrapper to the user defined function
    '''
    global py_warning_callback
    global mju_user_warning
    py_warning_callback = warn
    mju_user_warning = c_warning_callback
                       ^
------------------------------------------------------------

The problem shown in the picture below, can be solved by downgrading cython pip install "cython<3" as indicated by various sources (e.g., here)

Screenshot from 2024-05-27 15-54-32

Running the PyTest

With the changes above I get to successfully run the pytests, however, a few warnings remain. Fixing these can easily become a rabbit hole, where upgrading something breaks something else. At least, now the pytest runs.
Screenshot from 2024-05-27 15-56-10

EAI-VC Experiments Issues

After that, I try running the launch_all_jobs.sh, which is unsuccessful. To avoid pasting another long screenshot, here's the result from running just python hydra_launcher.py --config-name Metaworld_BC_config.yaml --multirun hydra/launcher=local \ wandb.project=metaworld_test wandb.entity=cortexbench \ env=hammer-v2-goal-observable \ seed=100 embedding=vc1_vitb, which leads to the same errors:

Screenshot from 2024-05-27 16-03-46

Question

Am I doing something wrong in the installation? Do I need to run the experiments in a different way?

Thanks in advance and I apologize for such a long detailed issue!

@li-zp21
Copy link

li-zp21 commented Sep 6, 2024

Hi, thanks for your effort! I've encountered the same experiment issue as yours. Have you solved it?

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

2 participants