Skip to content

TypeError: string indices must be integers #20

@small-zeng

Description

@small-zeng

When I run python objnav_benchmark.py, the problem occurs:

2025-05-23 18:36:35,820 Initializing dataset ObjectNav-v1
2025-05-23 18:36:37,918 initializing sim Sim-v0
2025-05-23 18:36:41,776 Initializing task ObjectNav-v1
Config './thirdparty/GLEE/configs/SwinL.yaml' has no VERSION. Assuming it to be compatible with latest v2.
/home/zj/anaconda3/envs/instructnav/lib/python3.9/site-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
0%| | 0/500 [00:00<?, ?it/s]/home/drivers/5/zengjing/InstructNav/mapper.py:80: RuntimeWarning: Mean of empty slice.
standing_position = np.array([self.current_position[0],self.current_position[1],current_navigable_position[:,2].mean()])
/home/zj/anaconda3/envs/instructnav/lib/python3.9/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in divide
ret = ret.dtype.type(ret / rcount)
/home/drivers/5/zengjing/InstructNav/mapper.py:80: RuntimeWarning: Mean of empty slice.
standing_position = np.array([self.current_position[0],self.current_position[1],current_navigable_position[:,2].mean()])
/home/zj/anaconda3/envs/instructnav/lib/python3.9/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in divide
ret = ret.dtype.type(ret / rcount)
stdgpu::vector::pop_back : Index out of bounds: -1 not in [0, 52]
unordered_base::try_insert : Associated bucket and excess list full
stdgpu::vector::size : Size out of bounds: -1 not in [0, 53]. Clamping to 0
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
GPT-4 Output Response:
0%| | 0/500 [00:20<?, ?it/s]
Traceback (most recent call last):
File "/home/drivers/5/zengjing/InstructNav/objnav_benchmark.py", line 40, in
habitat_agent.make_plan()
File "/home/drivers/5/zengjing/InstructNav/objnav_agent.py", line 190, in make_plan
self.chainon_answer = self.query_chainon()
File "/home/drivers/5/zengjing/InstructNav/objnav_agent.py", line 158, in query_chainon
self.trajectory_summary = self.trajectory_summary + str(answer['Action']) + '-' + str(answer['Landmark'])
TypeError: string indices must be integers

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