xuebinqin / BASNet

Code for CVPR 2019 paper. BASNet: Boundary-Aware Salient Object Detection
MIT License
1.39k stars 251 forks source link

Multiprocessing on Mac #65

Open luckfamousa opened 3 years ago

luckfamousa commented 3 years ago

I think you need to add the following guard to basnet_train.py to allow training on Macs:

if __name__ == '__main__':

Please also see https://discuss.pytorch.org/t/multiprocessing-not-working-on-pytorch-on-macbook/80663