Skip to content

Commit

Permalink
兼容tf2+
Browse files Browse the repository at this point in the history
  • Loading branch information
kerlomz committed Nov 21, 2020
1 parent f2f0a31 commit e568d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def convert_dataset_from_filename(self, output_filename, file_list, mode: RunMod
if labels:
labels = labels.group()
else:
tf.logging.warning('invalid filename {}, ignored.'.format(file_name))
tf.compat.v1.logging.warning('invalid filename {}, ignored.'.format(file_name))
continue
# raise NameError('invalid filename {}'.format(file_name))
labels = labels.encode('utf-8')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pillow>=4.3.0
opencv-python
numpy==1.18.4
numpy==1.18.5
pyyaml>=3.13
tqdm
colorama
Expand Down

0 comments on commit e568d39

Please sign in to comment.