May be problem wrapping main code in if name=="__main__" OR setting num_workers


here is code attachement: https://github.com/kkraoj/leafnet/blob/master/model.py

someone please have a look and suggest your solutions

Did you wrap your code in the if-clause protection?
Also, is your code working fine using num_workers=0?