[Docs] Fixed typo in pytorch2torchscript.md (#1173)
* [Docs] Fixed typo in pytorch2torchscript.md * [Docs] Fixed W293 blank line contains whitespacepull/1171/merge
parent
9b1cd5c3b1
commit
4a3ad4f652
docs
en/tools
zh_CN/tools
mmcls/datasets
|
@ -35,7 +35,7 @@ python tools/deployment/pytorch2torchscript.py \
|
|||
Example:
|
||||
|
||||
```bash
|
||||
python tools/deployment/pytorch2onnx.py \
|
||||
python tools/deployment/pytorch2torchscript.py \
|
||||
configs/resnet/resnet18_8xb16_cifar10.py \
|
||||
--checkpoint checkpoints/resnet/resnet18_8xb16_cifar10.pth \
|
||||
--output-file checkpoints/resnet/resnet18_8xb16_cifar10.pt \
|
||||
|
|
|
@ -33,7 +33,7 @@ python tools/deployment/pytorch2torchscript.py \
|
|||
示例:
|
||||
|
||||
```bash
|
||||
python tools/deployment/pytorch2onnx.py \
|
||||
python tools/deployment/pytorch2torchscript.py \
|
||||
configs/resnet/resnet18_8xb16_cifar10.py \
|
||||
--checkpoint checkpoints/resnet/resnet18_b16x8_cifar10.pth \
|
||||
--output-file checkpoints/resnet/resnet18_b16x8_cifar10.pt \
|
||||
|
|
|
@ -179,7 +179,7 @@ class ClassBalancedDataset(object):
|
|||
|
||||
.. math::
|
||||
r(c) = \max(1, \sqrt{\frac{t}{f(c)}})
|
||||
|
||||
|
||||
where :math:`t` is `oversample_thr`.
|
||||
3. For each image I and its labels :math:`L(I)`, compute the image-level
|
||||
repeat factor.
|
||||
|
|
Loading…
Reference in New Issue