提交 87f33a50 编写于 作者: J john

English grammar and header capitalization consistency fixes

上级 e31088f5
![image](./imgs/hand.gif) ![image](./imgs/hand.gif)
# <img src="./imgs/icon.jpg" width="48">DeepMosaics # <img src="./imgs/icon.jpg" width="48">DeepMosaics
You can use it to automatically remove the mosaics in images and videos, or add mosaics to them.<br> You can use it to automatically remove the mosaics in images and videos, or add mosaics to them.<br>
This porject based on "semantic segmentation" and "Image-to-Image Translation".<br> This project is based on "semantic segmentation" and "Image-to-Image Translation".<br>
* [中文版README](./README_CN.md)<br> * [中文版README](./README_CN.md)<br>
### More example ### More Examples
origin | auto add mosaic | auto clean mosaic origin | auto add mosaic | auto clean mosaic
:-:|:-:|:-: :-:|:-:|:-:
...@@ -28,24 +28,24 @@ origin | to Van Gogh | to winter ...@@ -28,24 +28,24 @@ origin | to Van Gogh | to winter
An interesting example:[Ricardo Milos to cat](https://www.bilibili.com/video/BV1Q7411W7n6) An interesting example:[Ricardo Milos to cat](https://www.bilibili.com/video/BV1Q7411W7n6)
## Run DeepMosaics ## Run DeepMosaics
You can either run DeepMosaics via pre-built binary package or from source.<br> You can either run DeepMosaics via a pre-built binary package, or from source.<br>
### Pre-built binary package ### Pre-built binary package
For windows, we bulid a GUI version for easy test.<br> For Windows, we bulid a GUI version for easy testing.<br>
Download this version and pre-trained model via [[Google Drive]](https://drive.google.com/open?id=1LTERcN33McoiztYEwBxMuRjjgxh4DEPs) [[百度云,提取码1x0a]](https://pan.baidu.com/s/10rN3U3zd5TmfGpO_PEShqQ) <br> Download this version, and a pre-trained model via [[Google Drive]](https://drive.google.com/open?id=1LTERcN33McoiztYEwBxMuRjjgxh4DEPs) [[百度云,提取码1x0a]](https://pan.baidu.com/s/10rN3U3zd5TmfGpO_PEShqQ) <br>
* [[How to use]](./docs/exe_help.md)<br> * [[How to use]](./docs/exe_help.md)<br>
![image](./imgs/GUI.png)<br> ![image](./imgs/GUI.png)<br>
Attentions:<br> Attentions:<br>
- Require Windows_x86_64, Windows10 is better.<br> - Requires Windows_x86_64, Windows10 is better.<br>
- Different pre-trained models are suitable for different effects.[[Introduction to pre-trained models]](./docs/pre-trained_models_introduction.md)<br> - Different pre-trained models are suitable for different effects.[[Introduction to pre-trained models]](./docs/pre-trained_models_introduction.md)<br>
- Run time depends on computer performance(The current version does not support gpu, if you need to use gpu please run source).<br> - Run time depends on computers performance(The current version does not support gpu, if you need to use gpu please run source).<br>
- If output video cannot be played, you can try with [potplayer](https://daumpotplayer.com/download/).<br> - If output video cannot be played, you can try with [potplayer](https://daumpotplayer.com/download/).<br>
- GUI version update slower than source.<br> - GUI version updates slower than source.<br>
### Run from source ### Run From Source
#### Prerequisites #### Prerequisites
- Linux, Mac OS, Windows - Linux, Mac OS, Windows
- Python 3.6+ - Python 3.6+
...@@ -59,12 +59,12 @@ This code depends on opencv-python, torchvision available via pip install. ...@@ -59,12 +59,12 @@ This code depends on opencv-python, torchvision available via pip install.
git clone https://github.com/HypoX64/DeepMosaics git clone https://github.com/HypoX64/DeepMosaics
cd DeepMosaics cd DeepMosaics
``` ```
#### Get pre-trained models #### Get Pre-Trained Models
You can download pre_trained models and put them into './pretrained_models'.<br> You can download pre_trained models and put them into './pretrained_models'.<br>
[[Google Drive]](https://drive.google.com/open?id=1LTERcN33McoiztYEwBxMuRjjgxh4DEPs) [[百度云,提取码1x0a]](https://pan.baidu.com/s/10rN3U3zd5TmfGpO_PEShqQ)<br> [[Google Drive]](https://drive.google.com/open?id=1LTERcN33McoiztYEwBxMuRjjgxh4DEPs) [[百度云,提取码1x0a]](https://pan.baidu.com/s/10rN3U3zd5TmfGpO_PEShqQ)<br>
[[Introduction to pre-trained models]](./docs/pre-trained_models_introduction.md)<br> [[Introduction to pre-trained models]](./docs/pre-trained_models_introduction.md)<br>
#### Simple example #### Simple Example
* Add Mosaic (output media will save in './result')<br> * Add Mosaic (output media will save in './result')<br>
```bash ```bash
python deepmosaic.py --media_path ./imgs/ruoruo.jpg --model_path ./pretrained_models/mosaic/add_face.pth --use_gpu 0 python deepmosaic.py --media_path ./imgs/ruoruo.jpg --model_path ./pretrained_models/mosaic/add_face.pth --use_gpu 0
...@@ -73,13 +73,13 @@ python deepmosaic.py --media_path ./imgs/ruoruo.jpg --model_path ./pretrained_mo ...@@ -73,13 +73,13 @@ python deepmosaic.py --media_path ./imgs/ruoruo.jpg --model_path ./pretrained_mo
```bash ```bash
python deepmosaic.py --media_path ./result/ruoruo_add.jpg --model_path ./pretrained_models/mosaic/clean_face_HD.pth --use_gpu 0 python deepmosaic.py --media_path ./result/ruoruo_add.jpg --model_path ./pretrained_models/mosaic/clean_face_HD.pth --use_gpu 0
``` ```
#### More parameters #### More Parameters
If you want to test other image or video, please refer to this file.<br> If you want to test other images or videos, please refer to this file.<br>
[[options_introduction.md]](./docs/options_introduction.md) <br> [[options_introduction.md]](./docs/options_introduction.md) <br>
## Training with your own dataset ## Training With Your Own Dataset
If you want to train with your own dataset, please refer to [training_with_your_own_dataset.md](./docs/training_with_your_own_dataset.md) If you want to train with your own dataset, please refer to [training_with_your_own_dataset.md](./docs/training_with_your_own_dataset.md)
## Acknowledgments ## Acknowledgements
This code borrows heavily from [[pytorch-CycleGAN-and-pix2pix]](https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix) [[Pytorch-UNet]](https://github.com/milesial/Pytorch-UNet) [[pix2pixHD]](https://github.com/NVIDIA/pix2pixHD) [[BiSeNet]](https://github.com/ooooverflow/BiSeNet). This code borrows heavily from [[pytorch-CycleGAN-and-pix2pix]](https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix) [[Pytorch-UNet]](https://github.com/milesial/Pytorch-UNet) [[pix2pixHD]](https://github.com/NVIDIA/pix2pixHD) [[BiSeNet]](https://github.com/ooooverflow/BiSeNet).
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册