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
Conversation
Signed-off-by: Albert Wolant <awolant@nvidia.com>
There was a problem hiding this 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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Builds 40854 |
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Signed-off-by: Albert Wolant <awolant@nvidia.com>
Builds 40867 |
* 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>
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.