TIGRE
TIGRE copied to clipboard
UBUNTU met "UnboundLocalError: local variable 'test_data' referenced before assignment" when using "demo/d03" test if it's installing
- python version: 3.7
- OS:ubuntu 18.4
- CUDA version:12.2
hi @GreameLee , can yo tell me the entire error (incuding line)?
hi @GreameLee , can yo tell me the entire error (incuding line)?
Traceback (most recent call last):
File "d03_generateData.py", line 35, in
@GreameLee have you installed the toolbox? seems that the data is missing, but this should only happens if you did not pip install .
as the instructions suggest. Or did you do that, but still get this error??
@AnderBiguri Yes, I do all the instructions step by step and successfully did it and tried several times but still got this error. And when I go to the sample_loader.py file and put test_data as an absolute path of head.mat, it can run now. I guess there is a problem with the relative path.
Thanks! for your own, that change should suffice to keep you going. I will investigate soon to see if I can find a fix that is general.