This file contains hidden or 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
This file contains hidden or 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 logging | |
| from datetime import datetime | |
| class CustomFormatter(logging.Formatter): | |
| """Logging Formatter to add colors and count warning / errors""" | |
| grey = "\x1b[38;21m" | |
| yellow = "\x1b[33;21m" | |
| light_blue = "\x1b[1;36m" |
This file contains hidden or 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 airflow import DAG | |
| from airflow.operators.bash import BashOperator | |
| from airflow.operators.python import PythonOperator | |
| from airflow.operators.subdag import SubDagOperator | |
| from airflow.utils.task_group import TaskGroup | |
| from random import uniform | |
| from datetime import datetime | |
| default_args = { |
This file contains hidden or 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 airflow import DAG | |
| from airflow.operators.bash import BashOperator | |
| from airflow.operators.python import PythonOperator | |
| from airflow.operators.subdag import SubDagOperator | |
| from airflow.utils.task_group import TaskGroup | |
| from random import uniform | |
| from datetime import datetime | |
| default_args = { |
This file contains hidden or 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
| """ | |
| Usage: | |
| # From tensorflow/models/ | |
| # Create train data: | |
| python generate_tfrecord.py --csv_input=images/train_labels.csv --image_dir=images/train --output_path=train.record | |
| # Create test data: | |
| python generate_tfrecord.py --csv_input=images/test_labels.csv --image_dir=images/test --output_path=test.record | |
| """ | |
| from __future__ import division |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| """ | |
| Usage: | |
| # From tensorflow/models/ | |
| # Create train data: | |
| python generate_tfrecord.py --csv_input=images/train_labels.csv --image_dir=images/train --output_path=train.record | |
| # Create test data: | |
| python generate_tfrecord.py --csv_input=images/test_labels.csv --image_dir=images/test --output_path=test.record | |
| """ | |
| from __future__ import division |
This file contains hidden or 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 datetime | |
| import os | |
| import sys | |
| from threading import Thread | |
| from argparse import ArgumentParser | |
| import io | |
| from flask import Flask, render_template, Response | |
| from flask import send_file |
This file contains hidden or 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
| faster_rcnn_inception_resnet_v2_atrous_coco.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28.tar.gz | |
|---|---|---|
| faster_rcnn_inception_resnet_v2_atrous_coco.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_resnet_v2_atrous_lowproposals_coco_2018_01_28.tar.gz | |
| faster_rcnn_inception_resnet_v2_atrous_cosine_lr_coco.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28.tar.gz | |
| faster_rcnn_inception_resnet_v2_atrous_cosine_lr_coco.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_resnet_v2_atrous_lowproposals_coco_2018_01_28.tar.gz | |
| faster_rcnn_inception_resnet_v2_atrous_oid_v4.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28.tar.gz | |
| faster_rcnn_inception_resnet_v2_atrous_oid_v4.config | http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_ |
This file contains hidden or 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 os, sys | |
| import shutil | |
| from argparse import ArgumentParser | |
| from random import randrange | |
| from PIL import Image | |
| import glob | |
| import re | |
| import xml.etree.ElementTree as ET | |
| import pandas as pd | |
| import tensorflow as tf |
NewerOlder