Skip to content

Why the result is not ideal? #6

Description

@cjbrain

The Craft and smelt tasks's result is shown as blew , and the agent did not move .
https://github.com/user-attachments/assets/9737c623-bded-4adf-a502-5fd76c174c9c

The mine task just going straight:
https://github.com/user-attachments/assets/39d38bb4-05d6-4e65-975f-2fed499c181e

I run this evaluate.py shown as,, is there anything wrong?
if name == "main":
parser = argparse.ArgumentParser()
parser.add_argument('--workers', type=int, default=1)
parser.add_argument('--split-number', type=int, default=6)
parser.add_argument('--env-config',"-e", type=str, default='smelt/iron_ingot') #kill/kill_zombine craft/craft_crafting_table mine/mine_stone smelt/iron_ingot
parser.add_argument('--max-frames', type=int, default=300) #vpt/test_vpt
parser.add_argument('--verbos', type=bool, default=False)
parser.add_argument('--checkpoints', type=str, default="/root/autodl-tmp/JarvisVLA-Qwen2-VL-7B")
parser.add_argument('--device',type=str,default="cuda:1")

parser.add_argument('--base-url',type=str,default ="http://localhost:8000/v1")
parser.add_argument('--video-main-fold',type=str)

parser.add_argument('--instruction-type',type=str,default='normal')
parser.add_argument('--temperature','-t',type=float,default=0.8)
parser.add_argument('--history-num',type=int,default=0)
parser.add_argument('--action-chunk-len',type=int,default=1)

args = parser.parse_args()

model_config = dict(
    temperature=args.temperature,
    history_num = args.history_num,
    instruction_type = args.instruction_type,
    action_chunk_len = args.action_chunk_len,
)
environment_config = dict(
    env_config = args.env_config,
    max_frames = args.max_frames,
    verbos = args.verbos,
)
if not args.base_url:
    args.base_url=None

if args.workers==0:
    environment_config["verbos"] = True
    video_path = f"{args.checkpoints.split('/')[-1]}-{args.env_config.split('/')[-1]}.mp4"
    evaluate(video_path=video_path,checkpoints = args.checkpoints,environment_config = environment_config,device=args.device,model_config=model_config)
elif args.workers==1:
    video_path = f"{args.checkpoints.split('/')[-1]}-{args.env_config.split('/')[-1]}.mp4"
    evaluate(video_path=f"{args.checkpoints.split('/')[-1]}-{args.env_config.split('/')[-1]}.mp4",checkpoints = args.checkpoints,environment_config = environment_config,base_url=args.base_url,model_config=model_config)
elif args.workers>1:
    multi_evaluate(args)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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