Skip to content

Commit 6fea9d9

Browse files
pyup-botJonathan DEKHTIAR
authored andcommitted
PyUP - Dependency Update Scheduled daily dependency update on thursday (#823)
* Pin imageio to latest version 2.4.0 * Pin pytest to latest version 3.8.0 * Update requirements_test.txt * Update requirements.txt * Update CHANGELOG.md * YAPF Applied * YAPF Corrections Applied
1 parent c969b68 commit 6fea9d9

27 files changed

+87
-86
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ To release a new version, please update the changelog as followed:
7070
## [Unreleased]
7171

7272
### Added
73+
- unittest `tests\test_timeout.py` has been added to ensure the network creation process does not freeze.
7374

7475
### Changed
7576
- remove 'tensorboard' param, replaced by 'tensorboard_dir' in `tensorlayer/utils.py` with customizable tensorboard directory (PR #819)
7677

7778
### Deprecated
7879

7980
### Removed
81+
- TL Graph API removed. Memory Leaks Issues with this API, will be fixed and integrated in TL 2.0 (PR #818)
8082

8183
### Fixed
8284

@@ -85,11 +87,13 @@ To release a new version, please update the changelog as followed:
8587
### Dependencies Update
8688
- autopep8>=1.3,<1.4 => autopep8>=1.3,<1.5 (PR #815)
8789
- pytest-cov>=2.5,<2.6 => pytest-cov>=2.5,<2.7 (PR #820)
90+
- pytest>=3.6,<3.8 => pytest>=3.6,<3.9 (PR #823)
91+
- imageio>=2.3,<2.4 => imageio>=2.3,<2.5 (PR #823)
8892

8993
### Contributors
94+
- @DEKHTIARJonathan: #815 #818 #820 #823
9095
- @ndiy: #819
91-
92-
- @DEKHTIARJonathan: #815 #820
96+
- @zsdonghao: #818
9397

9498
## [1.10.0] - 2018-09-02
9599

requirements/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
imageio>=2.3,<2.4
1+
imageio>=2.3,<2.5
22
lxml>=4.2,<4.3
33
matplotlib>=2.2,<2.3
44
numpy>=1.14,<1.16
@@ -8,4 +8,4 @@ scikit-learn>=0.19,<0.20
88
scikit-image>=0.14,<0.15
99
scipy>=1.1,<1.2
1010
tqdm>=4.23,<4.26
11-
wrapt>=1.10,<1.11
11+
wrapt>=1.10,<1.11

requirements/requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
keras>=2.2,<2.3
22
pycodestyle>=2.0,<2.5
33
pydocstyle>=2.1,<2.2
4-
pytest>=3.6,<3.8
4+
pytest>=3.6,<3.9
55
pytest-cache>=1.0,<1.1
66
pytest-cov>=2.5,<2.7
77
pytest-xdist>=1.22,<1.24

tensorlayer/cost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def dice_coe(output, target, loss_type='jaccard', axis=(1, 2, 3), smooth=1e-5):
259259
# epsilon = 1e-5
260260
# dice = tf.clip_by_value(dice, 0, 1.0-epsilon) # if all empty, dice = 1
261261
# new haodong
262-
dice = (2. * inse + smooth) / (l +r+ smooth)
262+
dice = (2. * inse + smooth) / (l + r + smooth)
263263
##
264264
dice = tf.reduce_mean(dice, name='dice_coe')
265265
return dice
@@ -298,7 +298,7 @@ def dice_hard_coe(output, target, threshold=0.5, axis=(1, 2, 3), smooth=1e-5):
298298
# epsilon = 1e-5
299299
# hard_dice = tf.clip_by_value(hard_dice, 0, 1.0-epsilon)
300300
# new haodong
301-
hard_dice = (2. * inse + smooth) / (l +r+ smooth)
301+
hard_dice = (2. * inse + smooth) / (l + r + smooth)
302302
##
303303
hard_dice = tf.reduce_mean(hard_dice, name='hard_dice')
304304
return hard_dice

tensorlayer/db.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,8 @@ def find_top_model(self, sess, sort=None, model_name='model', **kwargs):
219219

220220
pc = self.db.Model.find(kwargs)
221221
print(
222-
"[Database] Find one model SUCCESS. kwargs:{} sort:{} save time:{} took: {}s".format(
223-
kwargs, sort, _datetime, round(time.time() - s, 2)
224-
)
222+
"[Database] Find one model SUCCESS. kwargs:{} sort:{} save time:{} took: {}s".
223+
format(kwargs, sort, _datetime, round(time.time() - s, 2))
225224
)
226225

227226
# put all informations of model into the TL layer
@@ -656,10 +655,9 @@ def run_top_task(self, task_name=None, sort=None, **kwargs):
656655
}}, return_document=pymongo.ReturnDocument.AFTER
657656
)
658657
logging.info(
659-
"[Database] Finished Task: task_name - {} sort: {} push time: {} took: {}s".format(
660-
task_name, sort, _datetime,
661-
time.time() - s
662-
)
658+
"[Database] Finished Task: task_name - {} sort: {} push time: {} took: {}s".
659+
format(task_name, sort, _datetime,
660+
time.time() - s)
663661
)
664662
return True
665663
except Exception as e:

tensorlayer/decorators/deprecated.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def wrapper(wrapped, instance=None, args=None, kwargs=None):
4444
'%s: `%s.%s` (in file: %s) is deprecated and will be removed %s.\n'
4545
'Instructions for updating: %s\n' % (
4646
"Class" if inspect.isclass(wrapped) else "Function", wrapped.__module__, class_or_func_name,
47-
wrapped.__code__.co_filename, 'in a future version'
48-
if date is None else ('after %s' % date), instructions
47+
wrapped.__code__.co_filename, 'in a future version' if date is None else
48+
('after %s' % date), instructions
4949
)
5050
)
5151

tensorlayer/distributed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ def create_task_spec_def():
398398
task_data = env.get('task', None) or {'type': 'master', 'index': 0}
399399
cluster_data = env.get('cluster', None) or {'ps': None, 'worker': None, 'master': None}
400400
return TaskSpecDef(
401-
task_type=task_data['type'], index=task_data['index'], trial=task_data['trial'] if 'trial' in task_data else
402-
None, ps_hosts=cluster_data['ps'], worker_hosts=cluster_data['worker'], master=cluster_data['master']
403-
if 'master' in cluster_data else None
401+
task_type=task_data['type'], index=task_data['index'],
402+
trial=task_data['trial'] if 'trial' in task_data else None, ps_hosts=cluster_data['ps'],
403+
worker_hosts=cluster_data['worker'], master=cluster_data['master'] if 'master' in cluster_data else None
404404
)
405405
elif 'JOB_NAME' in os.environ:
406406
# JOB_NAME, TASK_INDEX, PS_HOSTS, WORKER_HOSTS and MASTER_HOST are used in TensorPort

tensorlayer/files/dataset_loaders/mpii_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def save_joints():
157157
vis = None
158158

159159
# if len(joint_pos) == 16:
160-
if ((is_16_pos_only == True) and (len(joint_pos) == 16)) or (is_16_pos_only == False):
160+
if ((is_16_pos_only ==True) and (len(joint_pos) == 16)) or (is_16_pos_only == False):
161161
# only use image with 16 key points / or use all
162162
data = {
163163
'filename': img_fn,

tensorlayer/files/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ def save_joints():
14621462
vis = None
14631463

14641464
# if len(joint_pos) == 16:
1465-
if ((is_16_pos_only == True) and (len(joint_pos) == 16)) or (is_16_pos_only == False):
1465+
if ((is_16_pos_only ==True) and (len(joint_pos) == 16)) or (is_16_pos_only == False):
14661466
# only use image with 16 key points / or use all
14671467
data = {
14681468
'filename': img_fn,

tensorlayer/iterate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def minibatches(inputs=None, targets=None, batch_size=None, allow_dynamic_batch_
6565
excerpt = indices[start_idx:end_idx]
6666
else:
6767
excerpt = slice(start_idx, end_idx)
68-
if (isinstance(inputs, list) or isinstance(targets, list)) and (shuffle == True):
68+
if (isinstance(inputs, list) or isinstance(targets, list)) and (shuffle ==True):
6969
# zsdonghao: for list indexing when shuffle==True
7070
yield [inputs[i] for i in excerpt], [targets[i] for i in excerpt]
7171
else:

0 commit comments

Comments
 (0)