Semantic_Human_Matting
Semantic_Human_Matting copied to clipboard
random_scale_and_creat_patch
Why should randomly scale and create path of input images? I do not understand why create pathes with randomly selecting areas in the image.
When I run ./test_camera.sh (--without_gpu), this error occurred: AttributeError: Can't get attribute 'RD_FPNnet' on <module 'model.T_Net' from '/Users/jasonxin/Documents/dlworkspace/Semantic_Human_Matting/model/T_Net.py'> My torch version is 1.0.0.
When I run ./test_camera.sh (--without_gpu), this error occurred: AttributeError: Can't get attribute 'RD_FPNnet' on <module 'model.T_Net' from '/Users/jasonxin/Documents/dlworkspace/Semantic_Human_Matting/model/T_Net.py'> My torch version is 1.0.0.
Suggest that run the code with pytorch 0.4.0 or you will get mistakes.
When I run ./test_camera.sh (--without_gpu), this error occurred: AttributeError: Can't get attribute 'RD_FPNnet' on <module 'model.T_Net' from '/Users/jasonxin/Documents/dlworkspace/Semantic_Human_Matting/model/T_Net.py'> My torch version is 1.0.0.
Suggest that run the code with pytorch 0.4.0 or you will get mistakes.
@cqww I have changed it to the pytorch 0.4.0, but the same errors...
Why should randomly scale and create path of input images? I do not understand why create pathes with randomly selecting areas in the image.
This is a data augmentation technique for improving the generalization-ability of the model.