Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rst doc for ssd pytorch example #349

Merged
merged 5 commits into from Dec 7, 2018
Merged

Conversation

awolant
Copy link
Contributor

@awolant awolant commented Dec 7, 2018

Signed-off-by: Albert Wolant awolant@nvidia.com

Also remov old .md README and run_and_time.sh as it did not introduce anything usefull.

Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant awolant changed the title Added rst doc for ssd pytorch example Add rst doc for ssd pytorch example Dec 7, 2018
Copy link
Member

@szalpal szalpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice instruction! Only few minor things to address

Requirements
------------

- This example was tested with :bash:`python3.5.2` and it should work with later versions. It will not work with :bash:`python2.7` and earlier.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an impression, that this:
":bash:python3.5.2"
isn't displayed correctly. Could you verify?
Also it seems to be the case in some other places as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ssd-doc

This is how it looks, I think it suffice.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how it looks for me, maybe somebody else could verify?

screenshot from 2018-12-07 11-38-07

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, picture I pasted was from doc generated locally using sphinx, I guess github does not handle rst files well. if you see other .rst files (like in resnet50 example) there are also problems there. I think maybe effort to make all docs look good in github should be separate from this PR? If indeed we do want to do it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to use:

.. code-block:: bash

Seems that this inline code doesn't work in the GitHub.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works well https://github.com/NVIDIA/DALI/blob/master/docs/examples/pytorch/renet50/pytorch-resnet50.rst. I think you can use different tag.

Under Training section there is :fileref: link visible, that is what I meant.

I will apply different method to highlight python versions.

Copy link
Contributor Author

@awolant awolant Dec 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, inline highlighting looks good both in sphinx generated version and in github, using double grave accent method.


.. code-block:: bash

python train.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we somehow add also info, how to lunch it in distributed training manner? Like
python -m torch.distributed.launch --nproc_per_node=8 train.py

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Distributed run is not supported for this example for now.

Single Shot MultiBox Detector training in PyTorch
============================

This example implements Single Shot Multibox Detector originally published by Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pleaae stress out the purpose - to show how DALI works in the detection networks, not how to implement SSD itself. It will be included in DALI docs so it should be alligned with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant
Copy link
Contributor Author

awolant commented Dec 7, 2018

Builds 40854

Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
@awolant
Copy link
Contributor Author

awolant commented Dec 7, 2018

Builds 40867

@JanuszL JanuszL merged commit 430f928 into NVIDIA:master Dec 7, 2018
JanuszL pushed a commit that referenced this pull request Dec 7, 2018
* Added rst doc for ssd pytorch example

Signed-off-by: Albert Wolant <awolant@nvidia.com>

* Fix links names

Signed-off-by: Albert Wolant <awolant@nvidia.com>

* Fix example description

Signed-off-by: Albert Wolant <awolant@nvidia.com>

* Fix inline code for Github

Signed-off-by: Albert Wolant <awolant@nvidia.com>

* Fix python packages list display for Github

Signed-off-by: Albert Wolant <awolant@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants