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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer