For pixel-level binary classification (semantic segmentation):
One object, two classes(background, object)
OS: Ubuntu 16.04 LTS
Framework: PyTorch 1.2.0 with cuda
Packages: NumPy, PIL, OpenCV-Python(3.4.2), etc...
GPU: Nvidia Quadro-p4000 8gb
My image (and label) size: (3, 500, 500)
Raw images should be in the directory of "/root/data/img"
Label images should be in the directory of "/root/data/label"
change root in fcn_dataset.py to your root path
- python gen_data_txt.py
- python fcn_train.py
- change "PATH_TO_PTH" in predict.py to your path_to_model_parameters
- change root to your dir_to_inference_images
- python predict.py