Update data/dot_single_video/precess_dataset_with_dot_single_video_return_position.py (#1)
Browse files- Update data/dot_single_video/precess_dataset_with_dot_single_video_return_position.py (17a08051d333c816ce1b52b48dfca0dcbb5b2903)
Co-authored-by: zzw <[email protected]>
data/dot_single_video/precess_dataset_with_dot_single_video_return_position.py
CHANGED
@@ -220,6 +220,7 @@ if __name__ == '__main__':
|
|
220 |
tensor_frames = spatial_transform(tensor_frames).unsqueeze(0) / 255.
|
221 |
|
222 |
# 2、get video tensor frames..
|
|
|
223 |
with torch.no_grad():
|
224 |
pred = dot_model({"video": tensor_frames.to(device)}, **inference_config) # input [b, f, c, h, w], torch.float32, 0~1 input
|
225 |
|
|
|
220 |
tensor_frames = spatial_transform(tensor_frames).unsqueeze(0) / 255.
|
221 |
|
222 |
# 2、get video tensor frames..
|
223 |
+
assert inference_config['return_flow'] == False, "for this mode, you need set this false" # ! note, important..
|
224 |
with torch.no_grad():
|
225 |
pred = dot_model({"video": tensor_frames.to(device)}, **inference_config) # input [b, f, c, h, w], torch.float32, 0~1 input
|
226 |
|