Closed kevtran23 closed 3 years ago
Hi, I think it is complaining that the length of samples1
passed to disc
function is 0. I suspect that you did not successfully run the evaluation program orca
(located in utils
folder) in your Google Colab environment. Could you check the Evaluation part to make sure that you successfully compile the ORCA?
I found that I continued to receive a ZeroDivisionError even after compiling orca. I found that the culprit was lines 255 and 283 of eval_helper.py
. The call to str.find
was always returning 0 for the index of the hardcoded COUNT_START_STR. I suspect that this may be caused by Linux/Windows line ending disparity (I encountered the issue while running Windows 10), but I cannot verify this. The fix I found for this was in two parts:
COUNT_START_STR = 'orbit counts:' \n
to
COUNT_START_STR = 'orbit counts:'
idx = output.find(COUNT_START_STR) + len(COUNT_START_STR)
to
idx = output.find(COUNT_START_STR) + len(COUNT_START_STR) + 2
I suspect that this change should work for any OS and I recommend adding it to the existing codebase if so.
I found that I continued to receive a ZeroDivisionError even after compiling orca. I found that the culprit was lines 255 and 283 of
eval_helper.py
. The call tostr.find
was always returning 0 for the index of the hardcoded COUNT_START_STR. I suspect that this may be caused by Linux/Windows line ending disparity (I encountered the issue while running Windows 10), but I cannot verify this. The fix I found for this was in two parts:
- Change line 255 from
COUNT_START_STR = 'orbit counts:' \n
toCOUNT_START_STR = 'orbit counts:'
- Change line 283 from
idx = output.find(COUNT_START_STR) + len(COUNT_START_STR)
toidx = output.find(COUNT_START_STR) + len(COUNT_START_STR) + 2
I suspect that this change should work for any OS and I recommend adding it to the existing codebase if so.
Thanks for spotting this! Do you mind submitting a pull request?
Hi Renjie,
I downloaded the gran_grid.pth model using the download_model.sh script and ran !python run_exp.py -c config/gran_grid.yaml -t in Google Colab and ran into the following error. Any suggestions what might be wrong? I also didn't change anything in the gran_grid.yaml file.
INFO | 2020-01-30 16:04:38,856 | run_exp.py | line 26 : Writing log file to exp/GRAN/GRANMixtureBernoulli_grid_2020-Jan-30-16-04-38_1211/log_exp_1211.txt INFO | 2020-01-30 16:04:38,857 | run_exp.py | line 27 : Exp instance id = 1211 INFO | 2020-01-30 16:04:38,857 | run_exp.py | line 28 : Exp comment = None INFO | 2020-01-30 16:04:38,857 | run_exp.py | line 29 : Config =