不需要转换成TfRecord格式。只需要两个txt,每个txt都是图片路径 分类id
的形式。
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
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
import boto3 | |
import argparse | |
AWS_ACCESS_KEY = "AWS_ACCESS_KEY_HERE" |
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
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
import argparse | |
import numpy as np | |
import os | |
import random |
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
BASE_DIR="examples/jinyu121-alexnet" | |
BACK_DIR="${BASE_DIR}/backups" | |
PRE="alexnet" | |
GPU_NUM=1 | |
LOG="/tmp/haoyu_log.log" | |
cd ../../ | |
build/tools/caffe time -gpu ${GPU_NUM} -phase TEST -model ${BASE_DIR}/train_val.prototxt >${LOG} 2>&1 | |
echo $(tail ${LOG} -n5 | head -n3 | cut -d "]" -f2 | cut -d ":" -f2) |
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
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
import argparse | |
import requests | |
import logging | |
import socket |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Sep 15 01:38:07 2017 | |
@author: nondanee | |
""" | |
import os | |
import sys | |
import locale |
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
<VirtualHost *:80> | |
ServerName your.domain | |
ServerAdmin admin@your.domain | |
DocumentRoot /var/www/v2proxy/ | |
ErrorLog ${APACHE_LOG_DIR}/error-v2proxy.log | |
CustomLog ${APACHE_LOG_DIR}/access-v2proxy.log combined | |
php_admin_value open_basedir "/var/www/v2proxy/:/tmp/:/proc/" | |
<Directory /var/www/v2proxy> |
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
# -*- coding: utf-8 -*- | |
import os | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.contrib.data import Dataset | |
from tensorflow.python.framework import dtypes | |
from tensorflow.python.framework.ops import convert_to_tensor | |
class ImageDataGenerator(object): |