mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-28 15:09:51 +00:00
Experiemnt with late detach
This commit is contained in:
@@ -190,8 +190,6 @@ class RTCProcessor:
|
|||||||
# So we need to invert the time
|
# So we need to invert the time
|
||||||
tau = 1 - time
|
tau = 1 - time
|
||||||
|
|
||||||
x_t = x_t.clone().detach()
|
|
||||||
|
|
||||||
if prev_chunk_left_over is None:
|
if prev_chunk_left_over is None:
|
||||||
# First step, no guidance - return v_t
|
# First step, no guidance - return v_t
|
||||||
v_t = original_denoise_step_partial(x_t)
|
v_t = original_denoise_step_partial(x_t)
|
||||||
@@ -237,6 +235,7 @@ class RTCProcessor:
|
|||||||
|
|
||||||
with torch.enable_grad():
|
with torch.enable_grad():
|
||||||
v_t = original_denoise_step_partial(x_t)
|
v_t = original_denoise_step_partial(x_t)
|
||||||
|
x_t = x_t.clone().detach()
|
||||||
x_t.requires_grad_(True)
|
x_t.requires_grad_(True)
|
||||||
|
|
||||||
x1_t = x_t - time * v_t # noqa: N806
|
x1_t = x_t - time * v_t # noqa: N806
|
||||||
|
|||||||
Reference in New Issue
Block a user