haosulab / ManiSkill

SAPIEN Manipulation Skill Framework, a GPU parallelized robotics simulator and benchmark
https://maniskill.ai/
Apache License 2.0
920 stars 166 forks source link

deno_manu_control TypeError: expected Tensor as element 1 in argument 0, but got int #697

Closed fengjungui closed 3 days ago

fengjungui commented 1 week ago
def from_action_dict(self, action_dict: dict):
    """Convert a dict of actions to a flat action."""
    return torch.hstack([torch.tensor(action_dict[uid]) for uid in self.controllers])

    里面加一个[torch.tensor
StoneT2000 commented 1 week ago

Can you share a full script?

fengjungui commented 1 week ago

I had.sovle this problem ,because of the parameter of script.

---Original--- From: "Stone @.> Date: Fri, Nov 15, 2024 06:41 AM To: @.>; Cc: @.**@.>; Subject: Re: [haosulab/ManiSkill] deno_manu_control TypeError: expected Tensoras element 1 in argument 0, but got int (Issue #697)

Can you share a full script?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

StoneT2000 commented 1 week ago

I can't understand what you sent?