Closed adamconkey closed 4 years ago
Hi, Thanks for raising. What happens if you run your script a few times? Does it always give this error?
Best, Stephen
No it's not every time. The demo = task.get_demos(1, live_demos=True)[0]
line is actually in a for loop that tries to get 100 demos in a row (note I only get 1 at a time because I'm rendering a progress bar on the terminal). I can sometimes collect 15-20 demos before I get the error.
I can post my full code if that's helpful but I think I picked out the parts that are RLBench-specific.
I just got the same error for OpenBox as well after successfully getting 18 demos.
Hi Adam, OK, so first let me explain why this is happening. When you get a demo, the task is placed randomly inside the workspace boundary. RLBench does this by sampling. Sometimes you can get unlucky and get bad samples and if it samples too many times, it assume the task has been badly designed. But I know that the 2 tasks you refer to are fine, so I either need to increase the sampling threshold, or I need to adjust the task so it doesn't reach the current threshold. Regardless, for now I suggest wrapping the get_demos call in a try-catch clause. I'll take a look at the tasks after I get back from CoRL.
Thanks for your help, Stephen. I will note that I'm running data collection on all 100 tasks and I see this error come up occasionally in many of them. The try/except approach works fine though and it often recovers after one error. I put it in a while-loop to make 10 consecutive attempts just to be robust to consecutive errors.
I got the following terminal output when trying the PutUmbrellaInUmbrellaStand task, which instructed me to raise an issue:
Here are the snippets from my code that are relevant:
My system:
venv
)