Merge 8b9b2d2e08
into 768e36660d
This commit is contained in:
commit
c31713079a
|
@ -134,6 +134,13 @@ python lerobot/scripts/control_robot.py \
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import cv2
|
||||||
|
|
||||||
|
# Make sure that the UI gets initialized before PyAV (av) gets imported by torchvision
|
||||||
|
# This solves the hanging issue with cv2.imshow on Ubuntu
|
||||||
|
cv2.namedWindow("i")
|
||||||
|
cv2.destroyAllWindows()
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -88,6 +88,12 @@ import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
|
|
||||||
|
# Make sure that the UI gets initialized before PyAV (av) gets imported by torchvision
|
||||||
|
# This solves the hanging issue with cv2.imshow on Ubuntu
|
||||||
|
cv2.namedWindow("i")
|
||||||
|
cv2.destroyAllWindows()
|
||||||
|
|
||||||
import gymnasium as gym
|
import gymnasium as gym
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
Loading…
Reference in New Issue