This will create a new project on Gitlab without creating it manually on the server
git push --set-upstream address/your-project.git
from harvesters.core import Harvester | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import cv2 | |
import time | |
from harvesters.util.pfnc import mono_location_formats, \ | |
rgb_formats, bgr_formats, bayer_location_formats, \ | |
rgba_formats, bgra_formats |
import numpy as np | |
from pathlib import Path | |
import xml.etree.cElementTree as ET | |
from PIL import Image | |
def create_labimg_xml(image_path, annotation_list): | |
image_path = Path(image_path) | |
img = np.array(Image.open(image_path).convert('RGB')) |
# download source from http://ftp.gnome.org/pub/GNOME/sources/aravis. | |
# Note: I found problem for USB support in github source | |
./configure --enable-viewer --enable-usb --enable-gst-plugin --enable-introspection=yes | |
make | |
sudo make install |
docker run --runtime=nvidia -it \
-v /home/uzzal/tmp_data:/tmp \
-v /share/personal/uzzal:/home \
-w /tmp \
-p 8998:8888 \
-p 5008:5000 \
tensorflow/tensorflow:latest-gpu-py3 bash
out_dir = 'out' | |
if not os.path.isdir(out_dir): | |
os.mkdir(out_dir) | |
current_out_dir = os.path.join( out_dir, strftime("%Y-%m-%d__%H_%M_%S", gmtime()) ) | |
os.mkdir(current_out_dir) | |
print('Output will be saved in', current_out_dir) |