Merge 8b9b2d2e08
into 1c873df5c0
This commit is contained in:
commit
64f690f9c3
|
@ -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 time
|
||||
from dataclasses import asdict
|
||||
|
|
|
@ -88,6 +88,12 @@ import time
|
|||
from pathlib import Path
|
||||
|
||||
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 numpy as np
|
||||
import torch
|
||||
|
|
Loading…
Reference in New Issue