Closed vincent341 closed 3 years ago
@vincent341 Thank you for pointing this out. I've pushed a fix in the fix_occant_ground_truth branch. I tested this locally and it works. Please let me know if it works for you as well. I'll merge it into master after that.
@srama2512 Thanks very much for your quick update. I'm running it. I will let you know the result once it is over.
@srama2512 The following training can run smoothly now;
python -u run.py --exp-config configs/model_configs/occant_ground_truth/ppo_exploration.yaml --run-type train
But when I tried to evaluate the checkpoint(obtained by the aforementioned training) by running the following command;
python -u run.py --exp-config configs/model_configs/occant_ground_truth/ppo_exploration_eval.yaml --run-type eval
The same error occured again. It was caused by the same line.
configs/model_configs/occant_ground_truth/ppo_exploration_eval.yaml was created by myself. It is shown as follows;
Would you mind giving me any hints on it? Much appreciated.
BASE_TASK_CONFIG_PATH: "configs/exploration/gibson_evaluate_noisy.yaml"
TRAINER_NAME: "occant_exp"
ENV_NAME: "ExpRLEnv"
SIMULATOR_GPU_ID: 0
SIMULATOR_GPU_IDS: [0]
TORCH_GPU_ID: 0
VIDEO_OPTION: []
TENSORBOARD_DIR: "tb"
VIDEO_DIR: "video_dir"
EVAL_CKPT_PATH_DIR: "data/new_checkpoints"
NUM_PROCESSES: 1
SENSORS: ["RGB_SENSOR", "DEPTH_SENSOR"]
CHECKPOINT_FOLDER: "data/new_checkpoints"
NUM_EPISODES: 10000
T_EXP: 1000
RL:
PPO:
# ppo params
ppo_epoch: 4
num_mini_batch: 1
ANS:
image_scale_hw: [128, 128]
MAPPER:
map_size: 101
registration_type: 'moving_average'
label_id: 'ego_map_gt_anticipated'
ignore_pose_estimator: False
map_batch_size: 2
use_data_parallel: True
replay_size: 10
gpu_ids: [0]
OCCUPANCY_ANTICIPATOR:
type: 'occant_ground_truth'
Thanks for the update!
Sorry about the latency. Finally got around to fixing it. It was a configuration issue specific to this baseline.
I tried to reproduce the OccAnt(GT) results by running
python -u run.py --exp-config configs/model_configs/occant_ground_truth/ppo_exploration.yaml --run-type train
.But got the following error
I traced the error. It comes from the following lines
x_full[k] = F.interpolate(x_full[k], size=(self.V, self.V), mode="bilinear")
I further print out _xfull[k] that caused the error, finding that
x_full['occ_estimate']=None
It seems when _k='occestimate', _x_full['occestimate'], which is None, is passed to F.interpolate(), causing the error.
Would you please help give any suggestion on why the error occurs and how to solve it? Many thanks!