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

Fix typos #208

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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