Fixed the bug in flow matching (#68)
* fix a bug in flow matching * fixed the bugs in flow matching * fixed format --------- Co-authored-by: Geoffrey19 <sympathischmann35@gmail.com>
This commit is contained in:
@@ -307,7 +307,7 @@ class ActionProcessor(nn.Module):
|
|||||||
torch.Tensor: Sampled timesteps of shape [batch_size]
|
torch.Tensor: Sampled timesteps of shape [batch_size]
|
||||||
"""
|
"""
|
||||||
sample = self.beta_dist.sample([batch_size]).to(device=device, dtype=dtype)
|
sample = self.beta_dist.sample([batch_size]).to(device=device, dtype=dtype)
|
||||||
time = (1 - sample) / self.s
|
time = (1 - sample) * self.s
|
||||||
return time
|
return time
|
||||||
|
|
||||||
def proprioception_proj(
|
def proprioception_proj(
|
||||||
|
|||||||
@@ -2046,7 +2046,7 @@ class Qwen2_5_VLMoEForAction(Qwen2_5_VLForConditionalGeneration):
|
|||||||
times = torch.linspace(
|
times = torch.linspace(
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
num_inference_timesteps,
|
num_inference_timesteps + 1,
|
||||||
device=inputs_embeds.device,
|
device=inputs_embeds.device,
|
||||||
dtype=inputs_embeds.dtype,
|
dtype=inputs_embeds.dtype,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user