Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: ./weights/weights_0.1.csv not found. #3

Open
mcdonaldnj304 opened this issue May 13, 2021 · 1 comment
Open

OSError: ./weights/weights_0.1.csv not found. #3

mcdonaldnj304 opened this issue May 13, 2021 · 1 comment

Comments

@mcdonaldnj304
Copy link

Good Morning,

After finishing the Fractal Category Search I proceeded to run the code fractal_renderer/make_fractaldb.py to construct FractalDB. However, in doing so I receive an error:
$ python fractal_renderer/make_fractaldb.py
Traceback (most recent call last):
File "fractal_renderer/make_fractaldb.py", line 39, in
weights = np.genfromtxt(args.weight_csv,dtype=np.str,delimiter=',')
File "/home/noahm/RSML/lib/python3.6/site-packages/numpy/lib/npyio.py", line 1772, in genfromtxt
fid = np.lib._datasource.open(fname, 'rt', encoding=encoding)
File "/home/noahm/RSML/lib/python3.6/site-packages/numpy/lib/_datasource.py", line 269, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
File "/home/noahm/RSML/lib/python3.6/site-packages/numpy/lib/_datasource.py", line 623, in open
raise IOError("%s not found." % path)
OSError: ./weights/weights_0.1.csv not found.

I went to FractalDB-trained-ResNet-PyTorch/fractal_renderer/weights and found the file weights_0.1.csv was indeed there.
I am unsure of the solution to this problem.

@rakshak-t
Copy link

@mcdonaldnj304

You can explicitly specify the path as I've shown here.

python3 fractal_renderer make_fractaldb.py <YOUR_OTHER_ARGS> --weight_csv <YOUR_PATH>/FractalDB-Pretrained-ResNet-PyTorch/fractal_renderer/weights/weights_0.1.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants