In this line;
https://github.com/Weixy21/SafeDiffuser/blob/maze2d/diffuser/models/diffusion.py#L1048
you are using x[:,2:3] and x has the shape (batch,horizion, (action_dim + observation_dim))
What is the purpose of using 2nd horizion index ?
Shouldn't you use x[:,:,0:1] which is the x position of the x value ?
In this line;
https://github.com/Weixy21/SafeDiffuser/blob/maze2d/diffuser/models/diffusion.py#L1048
you are using
x[:,2:3]and x has the shape (batch,horizion, (action_dim + observation_dim))What is the purpose of using 2nd horizion index ?
Shouldn't you use
x[:,:,0:1]which is the x position of thexvalue ?