gather expert data
This commit is contained in:
parent
c6c4411beb
commit
43f905e634
@ -208,7 +208,8 @@ class Dribble():
|
||||
if self.phase >= WIND_DOWN_STEPS - 5:
|
||||
self.phase = 0
|
||||
return True
|
||||
np.array(self.gather_expert_data.append((self.obs, self.act)), dtype=object)
|
||||
if self.obs != None and self.act != None:
|
||||
np.array(self.gather_expert_data.append((self.obs, self.act)), dtype=object)
|
||||
size = len(self.gather_expert_data)
|
||||
if size > 5e4:
|
||||
np.save('/home/apollo3d/code/TEST_Dribble/behaviors/custom/Dribble/expert_data.npy', self.gather_expert_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user