-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Unrecognized argument policy.path. How to load a pretrained model? #1111
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
Comments
I tried this:
When I just use if cfg.pretrained_path:
print("path=",cfg.pretrained_path)
# Load a pretrained policy and override the config if needed (for example, if there are inference-time
# hyperparameters that we want to vary).
kwargs["pretrained_name_or_path"] = cfg.pretrained_path
policy = policy_cls.from_pretrained(**kwargs) But when I add else:
cfg = draccus.parse(config_class=argtype, config_path=config_path, args=cli_args) reporting this: |
I can't register cfg,policy.pretrained_path=/outputs/train/act_so100_test/checkpoints/last/pretrained_model in |
--control.policy.type act \ after this I can evaluate and record (But my model works bad) I'm bad at code so if my work is right can anyone merge it to main and fix tutorials I really struggled at it :P Also i don't know whether my logic of code is right, although it runs successfullt :P |
When I run this command:
I got:
lerobot version:42bf1e8b9df3d38b3898b24e46b5e0386910c466
The text was updated successfully, but these errors were encountered: