sanatonek / TNC_representation_learning

110 stars 20 forks source link

Is it supposed to run on Mac OS X? #2

Open anaderi opened 3 years ago

anaderi commented 3 years ago

as I run the examples on Mac mini (core i3) OS X 11.1

python data/simulated_data.py

and then

python -m tnc.tnc --data  simulation --train

it ends up with tons of messages:

The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.

that I had to interrupt about an hour later. There is checkpoint_0.pth.tar in ckpt/simulation folder though.

ziyuanzhao2000 commented 2 years ago

Same problem here. I'm running with Macbook Pro with M1 chip, also encountered this problem. Here's the log:

TNC model with w=0.050000
(cv:0)Epoch 0 Loss =====> Training Loss: 0.78213     Training Accuracy: 0.50025      Test Loss: 0.71650      Test Accuracy: 0.51731
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().

Appears like there's some problem with doing multiprocessing in python.