Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
d90d5280
Unverified
Commit
d90d5280
authored
Jan 22, 2018
by
Neal Wu
Committed by
GitHub
Jan 22, 2018
Browse files
Merge pull request #3206 from cclauss/from-six.moves-import-xrange
from six.moves import xrange (en masse)
parents
6fc65ee6
848cc592
Changes
74
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
24 additions
and
7 deletions
+24
-7
research/next_frame_prediction/cross_conv/reader.py
research/next_frame_prediction/cross_conv/reader.py
+1
-0
research/next_frame_prediction/cross_conv/sprites_gen.py
research/next_frame_prediction/cross_conv/sprites_gen.py
+1
-0
research/object_detection/dataset_tools/oid_tfrecord_creation.py
...h/object_detection/dataset_tools/oid_tfrecord_creation.py
+1
-0
research/object_detection/utils/np_box_list_ops.py
research/object_detection/utils/np_box_list_ops.py
+1
-0
research/pcl_rl/baseline.py
research/pcl_rl/baseline.py
+1
-0
research/pcl_rl/controller.py
research/pcl_rl/controller.py
+1
-0
research/pcl_rl/env_spec.py
research/pcl_rl/env_spec.py
+1
-0
research/pcl_rl/expert_paths.py
research/pcl_rl/expert_paths.py
+1
-0
research/pcl_rl/gym_wrapper.py
research/pcl_rl/gym_wrapper.py
+1
-0
research/pcl_rl/optimizers.py
research/pcl_rl/optimizers.py
+1
-0
research/pcl_rl/replay_buffer.py
research/pcl_rl/replay_buffer.py
+1
-0
research/pcl_rl/trainer.py
research/pcl_rl/trainer.py
+1
-0
research/pcl_rl/trust_region.py
research/pcl_rl/trust_region.py
+1
-0
research/ptn/metrics.py
research/ptn/metrics.py
+1
-2
research/ptn/model_ptn.py
research/ptn/model_ptn.py
+1
-0
research/ptn/model_rotator.py
research/ptn/model_rotator.py
+5
-4
research/ptn/model_voxel_generation.py
research/ptn/model_voxel_generation.py
+1
-0
research/ptn/pretrain_rotator.py
research/ptn/pretrain_rotator.py
+1
-0
research/ptn/utils.py
research/ptn/utils.py
+1
-1
research/real_nvp/real_nvp_utils.py
research/real_nvp/real_nvp_utils.py
+1
-0
No files found.
research/next_frame_prediction/cross_conv/reader.py
View file @
d90d5280
...
...
@@ -15,6 +15,7 @@
"""Read image sequence."""
from
six.moves
import
xrange
import
tensorflow
as
tf
...
...
research/next_frame_prediction/cross_conv/sprites_gen.py
View file @
d90d5280
...
...
@@ -21,6 +21,7 @@ import sys
import
numpy
as
np
import
scipy.misc
from
six.moves
import
xrange
import
tensorflow
as
tf
...
...
research/object_detection/dataset_tools/oid_tfrecord_creation.py
View file @
d90d5280
...
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
from
object_detection.core
import
standard_fields
...
...
research/object_detection/utils/np_box_list_ops.py
View file @
d90d5280
...
...
@@ -21,6 +21,7 @@ Example box operations that are supported:
"""
import
numpy
as
np
from
six.moves
import
xrange
from
object_detection.utils
import
np_box_list
from
object_detection.utils
import
np_box_ops
...
...
research/pcl_rl/baseline.py
View file @
d90d5280
...
...
@@ -20,6 +20,7 @@ In some cases this is just an additional linear layer on the policy.
In other cases, it is a completely separate neural network.
"""
from
six.moves
import
xrange
import
tensorflow
as
tf
import
numpy
as
np
...
...
research/pcl_rl/controller.py
View file @
d90d5280
...
...
@@ -20,6 +20,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
import
numpy
as
np
import
pickle
...
...
research/pcl_rl/env_spec.py
View file @
d90d5280
...
...
@@ -20,6 +20,7 @@ from __future__ import division
from
__future__
import
print_function
import
numpy
as
np
from
six.moves
import
xrange
class
spaces
(
object
):
...
...
research/pcl_rl/expert_paths.py
View file @
d90d5280
...
...
@@ -22,6 +22,7 @@ import tensorflow as tf
import
random
import
os
import
numpy
as
np
from
six.moves
import
xrange
import
pickle
gfile
=
tf
.
gfile
...
...
research/pcl_rl/gym_wrapper.py
View file @
d90d5280
...
...
@@ -22,6 +22,7 @@ import gym
import
numpy
as
np
import
random
from
six.moves
import
xrange
import
env_spec
...
...
research/pcl_rl/optimizers.py
View file @
d90d5280
...
...
@@ -25,6 +25,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
import
numpy
as
np
import
scipy.optimize
...
...
research/pcl_rl/replay_buffer.py
View file @
d90d5280
...
...
@@ -20,6 +20,7 @@ Implements replay buffer in Python.
import
random
import
numpy
as
np
from
six.moves
import
xrange
class
ReplayBuffer
(
object
):
...
...
research/pcl_rl/trainer.py
View file @
d90d5280
...
...
@@ -25,6 +25,7 @@ import random
import
os
import
pickle
from
six.moves
import
xrange
import
controller
import
model
import
policy
...
...
research/pcl_rl/trust_region.py
View file @
d90d5280
...
...
@@ -24,6 +24,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
import
numpy
as
np
...
...
research/ptn/metrics.py
View file @
d90d5280
...
...
@@ -19,6 +19,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
slim
=
tf
.
contrib
.
slim
...
...
@@ -108,5 +109,3 @@ def add_volume_iou_metrics(inputs, outputs):
names_to_values
[
'volume_iou'
]
=
tmp_values
*
3.0
names_to_updates
[
'volume_iou'
]
=
tmp_updates
return
names_to_values
,
names_to_updates
research/ptn/model_ptn.py
View file @
d90d5280
...
...
@@ -21,6 +21,7 @@ from __future__ import print_function
import
os
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
losses
...
...
research/ptn/model_rotator.py
View file @
d90d5280
...
...
@@ -21,6 +21,7 @@ from __future__ import print_function
import
os
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
input_generator
...
...
@@ -191,19 +192,19 @@ def get_train_op_for_scope(loss, optimizer, scopes, params):
def
get_metrics
(
inputs
,
outputs
,
params
):
"""Aggregate the metrics for rotator model.
Args:
inputs: Input dictionary of the rotator model.
outputs: Output dictionary returned by the rotator model.
params: Hyperparameters of the rotator model.
Returns:
names_to_values: metrics->values (dict).
names_to_updates: metrics->ops (dict).
"""
names_to_values
=
dict
()
names_to_updates
=
dict
()
tmp_values
,
tmp_updates
=
metrics
.
add_image_pred_metrics
(
inputs
,
outputs
,
params
.
num_views
,
3
*
params
.
image_size
**
2
)
names_to_values
.
update
(
tmp_values
)
...
...
@@ -217,7 +218,7 @@ def get_metrics(inputs, outputs, params):
for
name
,
value
in
names_to_values
.
iteritems
():
slim
.
summaries
.
add_scalar_summary
(
value
,
name
,
prefix
=
'eval'
,
print_summary
=
True
)
return
names_to_values
,
names_to_updates
...
...
research/ptn/model_voxel_generation.py
View file @
d90d5280
...
...
@@ -22,6 +22,7 @@ import abc
import
os
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
input_generator
...
...
research/ptn/pretrain_rotator.py
View file @
d90d5280
...
...
@@ -21,6 +21,7 @@ from __future__ import print_function
import
os
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
from
tensorflow
import
app
...
...
research/ptn/utils.py
View file @
d90d5280
...
...
@@ -28,6 +28,7 @@ from mpl_toolkits.mplot3d import axes3d as p3 # pylint:disable=unused-import
import
numpy
as
np
from
PIL
import
Image
from
skimage
import
measure
from
six.moves
import
xrange
import
tensorflow
as
tf
...
...
@@ -116,4 +117,3 @@ def visualize_voxel_scatter(points, vis_size=128):
vis_size
,
vis_size
,
3
)
p
.
close
(
'all'
)
return
data
research/real_nvp/real_nvp_utils.py
View file @
d90d5280
...
...
@@ -19,6 +19,7 @@ r"""Utility functions for Real NVP.
# pylint: disable=dangerous-default-value
import
numpy
from
six.moves
import
xrange
import
tensorflow
as
tf
from
tensorflow.python.framework
import
ops
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment