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


here is code attachement: leafnet/model.py at master · kkraoj/leafnet · GitHub

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?