fix storing of agent embedding
This commit is contained in:
parent
903c43b770
commit
46f86cd247
@ -2255,7 +2255,7 @@ class DynamicsWorldModel(Module):
|
|||||||
video = cat((video, next_frame), dim = 2)
|
video = cat((video, next_frame), dim = 2)
|
||||||
rewards = safe_cat((rewards, reward), dim = 1)
|
rewards = safe_cat((rewards, reward), dim = 1)
|
||||||
|
|
||||||
acc_agent_embed = safe_cat((acc_agent_embed, agent_embed), dim = 1)
|
acc_agent_embed = safe_cat((acc_agent_embed, one_agent_embed), dim = 1)
|
||||||
|
|
||||||
# package up one experience for learning
|
# package up one experience for learning
|
||||||
|
|
||||||
@ -2672,7 +2672,9 @@ class DynamicsWorldModel(Module):
|
|||||||
|
|
||||||
# maybe store agent embed
|
# maybe store agent embed
|
||||||
|
|
||||||
acc_agent_embed = safe_cat((acc_agent_embed, agent_embed), dim = 1)
|
if store_agent_embed:
|
||||||
|
one_agent_embed = agent_embed[:, -1:, agent_index]
|
||||||
|
acc_agent_embed = safe_cat((acc_agent_embed, one_agent_embed), dim = 1)
|
||||||
|
|
||||||
# decode the agent actions if needed
|
# decode the agent actions if needed
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "dreamer4"
|
name = "dreamer4"
|
||||||
version = "0.0.87"
|
version = "0.0.88"
|
||||||
description = "Dreamer 4"
|
description = "Dreamer 4"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
|
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user