Skip to content

Commit

Permalink
Fix typos (#208)
Browse files Browse the repository at this point in the history
Signed-off-by: lizz <[email protected]>
  • Loading branch information
innerlee authored Feb 25, 2021
1 parent 0e5332f commit 0a32934
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PyTorch 1.3.1., you need to install the prebuilt PyTorch with CUDA 9.2.
conda install pytorch=1.3.1 cudatoolkit=9.2 torchvision=0.4.2 -c pytorch
```

If you build PyTorch from source instead of installing the prebuilt pacakge,
If you build PyTorch from source instead of installing the prebuilt package,
you can use more CUDA versions such as 9.0.

c. Clone the mmediting repository.
Expand Down
2 changes: 1 addition & 1 deletion tools/data/matting/bgm/preprocess_bgm_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def generate_json(data_root, seg_root, bg_root, all_data):
"""Generate training json list for Backgroung Matting video dataset.
"""Generate training json list for Background Matting video dataset.
Args:
data_root (str): Background Matting video data root.
Expand Down
2 changes: 1 addition & 1 deletion tools/data/matting/comp1k/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ mmediting
## Prepare the dataset for FBA

FBA adopts dynamic dataset augmentation proposed in [Learning-base Sampling for Natural Image Matting](https://openaccess.thecvf.com/content_CVPR_2019/papers/Tang_Learning-Based_Sampling_for_Natural_Image_Matting_CVPR_2019_paper.pdf).
In addition, to reduce artifacts during augmentation, it uses the extened version of foreground as foreground.
In addition, to reduce artifacts during augmentation, it uses the extended version of foreground as foreground.
We provide scripts to estimate foregrounds.

Prepare the test set as follows:
Expand Down
2 changes: 1 addition & 1 deletion tools/data/matting/comp1k/extend_fg.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def parse_args():
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('data_root', help='Adobe composition 1k dataset root')
parser.add_argument(
'--nproc', type=int, default=4, help='number of processer')
'--nproc', type=int, default=4, help='number of processor')
args = parser.parse_args()
return args

Expand Down
2 changes: 1 addition & 1 deletion tools/pytorch2onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse_args():
data = dict(merged_path=args.img_path, trimap_path=args.trimap_path)
data = test_pipeline(data)

# conver model to onnx file
# convert model to onnx file
pytorch2onnx(
model,
data,
Expand Down
Empty file modified tools/slurm_test.sh
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion tools/slurm_train.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
export MASTER_PORT=$((12000 + $RANDOM % 20000))


set -x

PARTITION=$1
Expand Down

0 comments on commit 0a32934

Please sign in to comment.