Khrylx/Transform2Act

Some errors in the codes

drdh opened this issue · 2 comments

drdh commented
  1. There is no create_dirs argument in Config class's init function.

    cfg = Config(args.cfg, args.tmp, create_dirs=not (args.render or args.epoch != '0'))

  2. When num_threads >= 2, the code gets stuck in the following line

    out[x_ind] = torch.addmm(b, x[x_ind], W.t())
    multiprocessing might be the reason. When num_threads=1 and Queue was not use, everything goes fine. I setup a conda environment as the instructions in README. Have you ever encountered this bug?

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.