Skip to content

Commit

Permalink
V1.8 (#464)
Browse files Browse the repository at this point in the history
* v1.8

* improve setup.py
  • Loading branch information
lanpa committed Jul 4, 2019
1 parent 9502862 commit 53bb375
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
History
=======
1.8 (2019-07-05)
-----------------
* Draw label text on image with bounding box provided.
* crc32c speed up (optional by installing crc32c manually)
* Rewrite add_graph. onnx backend is replaced by JIT to support more advanced structure.
* Now you can add_mesh() to visualize colorful point cloud or meshes.

1.7 (2019-05-19)
-----------------
* Able to write to S3
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Write TensorBoard events with simple function call.

* Support `scalar`, `image`, `figure`, `histogram`, `audio`, `text`, `graph`, `onnx_graph`, `embedding`, `pr_curve`
* Support `scalar`, `image`, `figure`, `histogram`, `audio`, `text`, `graph`, `onnx_graph`, `embedding`, `pr_curve`, `mesh`
and `video` summaries.

* requirement for `demo_graph.py` is tensorboardX>=1.6 and pytorch>=1.1
Expand All @@ -17,7 +17,7 @@ Write TensorBoard events with simple function call.

## Install

Tested on anaconda2 / anaconda3, with PyTorch 1.0.0 / torchvision 0.2.2 / tensorboard 1.13.0
Tested on anaconda2 / anaconda3, with PyTorch 1.1.0 / torchvision 0.3 / tensorboard 1.13.0

`pip install tensorboardX`

Expand Down
22 changes: 10 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,16 @@ def run(self):
with open('HISTORY.rst') as history_file:
history = history_file.read()

# comment if preparing PyPI package
version = '1.7'
preparing_PyPI_package = False
version_git = version = '1.8'

if os.path.exists('.git'):
sha = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('ascii').strip()
version_git = version + '+' + sha[:7]
else:
version_git = version
if not preparing_PyPI_package:
if os.path.exists('.git'):
sha = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('ascii').strip()
version_git = version_git + '+' + sha[:7]

with open('tensorboardX/__init__.py', 'a') as f:
f.write('\n__version__ = "{}"\n'.format(version_git))
# end of comment
with open('tensorboardX/__init__.py', 'a') as f:
f.write('\n__version__ = "{}"\n'.format(version_git))

requirements = [
'numpy',
Expand Down Expand Up @@ -90,8 +88,8 @@ def run(self):


# checklist: update History.rst readme.md
# version=version_git <--- change to sha-less version (in setup.py)
# __version__ = "1.x" (__init__.py)
# change preparing_PyPI_package to True
# remove __version__ = "1.old" in __init__.py
# commit
# add tag
# python setup.py sdist bdist_wheel --universal
Expand Down
2 changes: 1 addition & 1 deletion tensorboardX/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .torchvis import TorchVis
from .writer import FileWriter, SummaryWriter

__version__ = "1.7" # will be overwritten if run setup.py
__version__ = "1.8" # will be overwritten if run setup.py

0 comments on commit 53bb375

Please sign in to comment.