Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Failed to run the demo metaworld-mt10 #23

Description

@Zhulongtao6

Description

An error was encountered after running the sample code for a while, I use such command line settings:
PYTHONPATH=. python3 -u main.py
setup=metaworld
agent=state_sac
env=metaworld-mt10
agent.multitask.num_envs=10
agent.multitask.should_use_disentangled_alpha=True

How to reproduce

Error in call to target 'mtrl.experiment.metaworld.Experiment':
ConfigAttributeError('Missing key encoder\n full_key: agent.encoder\n object_type=dict')
full_key: experiment.builder

The above exception was the direct cause of the following exception:

File "C:\Users\Tz0942\Downloads\mtrl-main\mtrl\experiment\metaworld.py", line 20, in init
super().init(config, experiment_id)
File "C:\Users\Tz0942\Downloads\mtrl-main\mtrl\experiment\multitask.py", line 25, in init
super().init(config, experiment_id)
File "C:\Users\Tz0942\Downloads\mtrl-main\mtrl\experiment\experiment.py", line 63, in init
self.config = prepare_config(config=self.config, env_metadata=self.env_metadata)
File "C:\Users\Tz0942\Downloads\mtrl-main\mtrl\experiment\experiment.py", line 187, in prepare_config
if key in config.agent.encoder:

The above exception was the direct cause of the following exception:

System information

  • MTRL Version : e282c3f
  • MTRL environment Name : meatworld-mt10
  • Python version : python 3.8
  • metaworld commit: af8417bfc82a3e249b4b02156518d775f29eb289

Any other information

I have to modify some configuration items in config.yaml can be annotated before I run main.py successfully:
config.yaml like this:
defaults:
- setup: metaworld
- experiment: ${defaults.0.setup}
- agent: sac
- agent/components: ${defaults.0.setup}_actor
#- agent/components: ${defaults.0.setup}_critic
#- agent/components: ${defaults.0.setup}_encoder
#- agent/components: ${defaults.0.setup}_transition_model
#- agent/components: task_to_encoder_cluster
#- agent/components: ${defaults.0.setup}_mask
#- agent/components: ${defaults.0.setup}_multitask
#- agent/components: ${defaults.0.setup}_transition_model
#- agent/components: ${defaults.0.setup}_gradnorm
#- agent/components: ${defaults.0.setup}_task_to_encoder_cluster
- agent/optimizers: ${defaults.0.setup}_actor
#- agent/optimizers: ${defaults.0.setup}_alpha
#- agent/optimizers: ${defaults.0.setup}_critic
#- agent/optimizers: ${defaults.0.setup}_decoder
#- agent/optimizers: ${defaults.0.setup}_encoder
- env: ???
- replay_buffer: mtrl
- logger: mtrl
- metrics: ${defaults.0.setup}
- logbook: mtrl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions