You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set the sample_mode='enumerate', with a batch size of 48. The two tasks are close_jar and insert_onto_square_peg, and the returned length of the test_dataset is 64. I believe this means that if I iterate 64 times, all samples in the test replay buffer will be enumerated. However, when I do that, I find that the insert_onto_square_peg task is never sampled. Only after increasing the number of iterations to about 263 do I begin to see the insert_onto_square_peg samples.
Do you have any insight into why this is happening?
Also, when i try to add validation set, i find the programm will be blocked and can not proceed during training:
print("Start training ...", flush=True)
i = start_epoch
while True:
if i == end_epoch:
break
print(f"Rank [{rank}], Epoch [{i}]: Training on train dataset")
out = train(agent, train_dataset, TRAINING_ITERATIONS, rank)
out_val= validate(agent, val_dataset, VAL_ITERATIONS, rank,)
if rank == 0:
tb.update("train", i, out)
tb.update("val", i, out_val)
if rank == 0 and i % 5 == 0:
# TODO: add logic to only save some models
save_agent(agent, f"{log_dir}/model_{i}.pth", i)
save_agent(agent, f"{log_dir}/model_last.pth", i)
i += 1
Hi,
I have set the
sample_mode='enumerate'
, with a batch size of 48. The two tasks areclose_jar
andinsert_onto_square_peg
, and the returned length of the test_dataset is 64. I believe this means that if I iterate 64 times, all samples in the test replay buffer will be enumerated. However, when I do that, I find that theinsert_onto_square_peg
task is never sampled. Only after increasing the number of iterations to about 263 do I begin to see the insert_onto_square_peg samples.Do you have any insight into why this is happening?
`class PyTorchIterableReplayDataset(IterableDataset):
The text was updated successfully, but these errors were encountered: