start new:
tmux
start new with session name:
tmux new -s myname
To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.
For example;
docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
import numpy as np | |
import cv2 | |
import math | |
import torch | |
###### POLYGON INTERPOLATION FUNCTIONS NUMPY ###### | |
def segments(poly): | |
"""A sequence of (x,y) numeric coordinates pairs """ | |
return zip(poly, poly[1:] + [poly[0]]) |
import numpy as np | |
import cv2 | |
import math | |
import torch | |
###### POLYGON INTERPOLATION FUNCTIONS PYTORCH ###### | |
from torchinterp1d import Interp1d | |
def segments_torch(polygon): |