Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxue0827 committed Nov 14, 2017
1 parent a935107 commit 1822d6d
Show file tree
Hide file tree
Showing 234 changed files with 161,294 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .idea/FPN_v1.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/webServers.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,372 changes: 1,372 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Test results
![符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_horizontal_gt.jpg](tools/test_result/符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_horizontal_gt.jpg)
![符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_horizontal_fpn.jpg](tools/test_result/符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_horizontal_fpn.jpg)
![符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_rotate_gt.jpg](tools/test_result/符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_rotate_gt.jpg)
![符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_rotate_fpn.jpg](tools/test_result/符拉迪沃斯托克海军基地-基奥米德湾_2010-06-07%7200%4000.tif_rotate_fpn.jpg)

![符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_horizontal_gt.jpg](tools/test_result/符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_horizontal_gt.jpg)
![符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_horizontal_fpn.jpg](tools/test_result/符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_horizontal_fpn.jpg)
![符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_rotate_gt.jpg](tools/test_result/符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_rotate_gt.jpg)
![符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_rotate_fpn.jpg](tools/test_result/符拉迪沃斯托克海军基地-乌利斯湾_2012-12%6300%1500.tif_rotate_fpn.jpg)
Empty file added __init__.py
Empty file.
Empty file added configs/__init__.py
Empty file.
Binary file added configs/__init__.pyc
Binary file not shown.
Binary file added configs/__pycache__/__init__.cpython-35.pyc
Binary file not shown.
Binary file not shown.
100 changes: 100 additions & 0 deletions configs/config_inception_resnet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf

######################
# data set
####################

tf.app.flags.DEFINE_string(
'dataset_tfrecord',
'../data/tfrecords',
'tfrecord of fruits dataset'
)
tf.app.flags.DEFINE_integer(
'new_img_size',
224,
'the value of new height and new width, new_height = new_width'
)

###########################
# data batch
##########################
tf.app.flags.DEFINE_integer(
'num_classes',
100,
'num of classes'
)
tf.app.flags.DEFINE_integer(
'batch_size',
32, #64
'num of imgs in a batch'
)
tf.app.flags.DEFINE_integer(
'val_batch_size',
16,
'val or test batch'
)
###########################
## learning rate
#########################
tf.app.flags.DEFINE_float(
'lr_begin',
0.0001, # 0.01 # 0.001 for without prepocess
'the value of learning rate start with'
)
tf.app.flags.DEFINE_integer(
'decay_steps',
2000, # 5000
"after 'decay_steps' steps, learning rate begin decay"
)
tf.app.flags.DEFINE_float(
'decay_rate',
0.1,
'decay rate'
)

###############################
# optimizer-- MomentumOptimizer
###############################
tf.app.flags.DEFINE_float(
'momentum',
0.9,
'accumulation = momentum * accumulation + gradient'
)

############################
# train
########################
tf.app.flags.DEFINE_integer(
'max_steps',
30050,
'max iterate steps'
)

tf.app.flags.DEFINE_string(
'pretrained_model_path',
'../data/pretrained_weights/inception_resnet_v2_2016_08_30.ckpt',
'the path of pretrained weights'
)
tf.app.flags.DEFINE_float(
'weight_decay',
0.00004,
'weight_decay in regulation'
)
################################
# summary and save_weights_checkpoint
##################################
tf.app.flags.DEFINE_string(
'summary_path',
'../output/inception_res_summary',
'the path of summary write to '
)
tf.app.flags.DEFINE_string(
'trained_checkpoint',
'../output/inception_res_trainedweights',
'the path to save trained_weights'
)
FLAGS = tf.app.flags.FLAGS
Binary file added configs/config_inception_resnet.pyc
Binary file not shown.
99 changes: 99 additions & 0 deletions configs/config_res101.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf

######################
# data set
####################
tf.app.flags.DEFINE_string(
'dataset_tfrecord',
'../data/tfrecords',
'tfrecord of fruits dataset'
)
tf.app.flags.DEFINE_integer(
'new_img_size',
224,
'the value of new height and new width, new_height = new_width'
)

###########################
# data batch
##########################
tf.app.flags.DEFINE_integer(
'num_classes',
134,
'num of classes'
)
tf.app.flags.DEFINE_integer(
'batch_size',
64, #64
'num of imgs in a batch'
)
tf.app.flags.DEFINE_integer(
'val_batch_size',
32,
'val or test batch'
)
###########################
## learning rate
#########################
tf.app.flags.DEFINE_float(
'lr_begin',
0.001, # 0.01 # 0.001 for without prepocess
'the value of learning rate start with'
)
tf.app.flags.DEFINE_integer(
'decay_steps',
20000, # 5000
"after 'decay_steps' steps, learning rate begin decay"
)
tf.app.flags.DEFINE_float(
'decay_rate',
0.1,
'decay rate'
)

###############################
# optimizer-- MomentumOptimizer
###############################
tf.app.flags.DEFINE_float(
'momentum',
0.9,
'accumulation = momentum * accumulation + gradient'
)

############################
# train
########################
tf.app.flags.DEFINE_integer(
'max_steps',
4003,
'max iterate steps'
)

tf.app.flags.DEFINE_string(
'pretrained_model_path',
'../data/pretrained_weights/resnet_v1_101.ckpt',
'the path of pretrained weights'
)
tf.app.flags.DEFINE_float(
'weight_decay',
0.0001,
'weight_decay in regulation'
)
################################
# summary and save_weights_checkpoint
##################################
tf.app.flags.DEFINE_string(
'summary_path',
'../output/res101_summary',
'the path of summary write to '
)
tf.app.flags.DEFINE_string(
'trained_checkpoint',
'../output/res101_trained_weights',
'the path to save trained_weights'
)
FLAGS = tf.app.flags.FLAGS
Binary file added configs/config_res101.pyc
Binary file not shown.
73 changes: 73 additions & 0 deletions configs/config_resnet_50.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import tensorflow as tf

tf.app.flags.DEFINE_string(
'dataset_tfrecord',
'../data/tfrecords',
'tfrecord of fruits dataset'
)
tf.app.flags.DEFINE_integer(
'shortside_size',
600,
'the value of new height and new width, new_height = new_width'
)

###########################
# data batch
##########################
tf.app.flags.DEFINE_integer(
'num_classes',
20,
'num of classes'
)
tf.app.flags.DEFINE_integer(
'batch_size',
1, #64
'num of imgs in a batch'
)

###############################
# optimizer-- MomentumOptimizer
###############################
tf.app.flags.DEFINE_float(
'momentum',
0.9,
'accumulation = momentum * accumulation + gradient'
)

############################
# train
########################
tf.app.flags.DEFINE_integer(
'max_steps',
900000,
'max iterate steps'
)

tf.app.flags.DEFINE_string(
'pretrained_model_path',
'../data/pretrained_weights/resnet_50.ckpt',
'the path of pretrained weights'
)
tf.app.flags.DEFINE_float(
'weight_decay',
0.0001,
'weight_decay in regulation'
)
################################
# summary and save_weights_checkpoint
##################################
tf.app.flags.DEFINE_string(
'summary_path',
'../output/resnet_summary',
'the path of summary write to '
)
tf.app.flags.DEFINE_string(
'trained_checkpoint',
'../output/resnet_trained_weights',
'the path to save trained_weights'
)
FLAGS = tf.app.flags.FLAGS
Binary file added configs/config_resnet_50.pyc
Binary file not shown.
Loading

0 comments on commit 1822d6d

Please sign in to comment.