Skip to content

Fix: TypeError from incorrect arguments in robo_run() call #4

@jonastbrg

Description

@jonastbrg

Problem

Script crashes with TypeError: robo_run() got multiple values for argument 'pixel_values' due to incorrect argument order in gcg.robo_run() call.

Location

File: experiments/single_step/run_transfer.py, line 124

Function expects: (model, processor, target, pixel_values, config),

Call was passing: (model, processor, action_tokenizer, target, pixel_values=pixel_values, config)

Fix

Remove action_tokenizer argument:

result = gcg.robo_run(openvla_model, openvla_processor, target_str, pixel_values, config=config)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions