Some errors in the codes
drdh opened this issue · 2 comments
drdh commented
-
There is no
create_dirs
argument inConfig
class's init function.Transform2Act/design_opt/train.py
Line 22 in 9c49037
-
When
num_threads >= 2
, the code gets stuck in the following lineTransform2Act/design_opt/models/jsmlp.py
Line 24 in 9c49037
multiprocessing
might be the reason. Whennum_threads=1
andQueue
was not use, everything goes fine. I setup a conda environment as the instructions in README. Have you ever encountered this bug?
Khrylx commented
Hello,
Thanks for spotting the error with config!
For multiprocessing, you can try to set the following environment variable to avoid problems with multiprocess sampling:
export OMP_NUM_THREADS=1
drdh commented
Thanks, it solves my problem.