yael-vinker / CLIPasso

Other
850 stars 91 forks source link

No such file or directory: '..../camel_16strokes_seed0/config.npy' (Docker installation) #2

Closed yael-vinker closed 2 years ago

yael-vinker commented 2 years ago

Encountered same issue. Docker installation as per instructions but when >python run_object,,,,, the following happens:

Processing [camel.png] ... Results will be saved to [/home/vinker/CLIPSketch/output_sketches/camel/] ...

GPU: True 100%|████████████████████████████████████████| 278M/278M [04:57<00:00, 982kiB/s] Traceback (most recent call last): File "run_object_sketching.py", line 99, in run(seed, wandb_name) File "run_object_sketching.py", line 83, in run allow_pickle=True)[()] File "/home/vinker/miniconda/envs/habitat/lib/python3.7/site-packages/numpy/lib/npyio.py", line 417, in load fid = stack.enter_context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: '/home/vinker/CLIPSketch/output_sketches/camel//camel_16strokes_seed0/config.npy'

Originally posted by @jthteo in https://github.com/yael-vinker/CLIPasso/issues/1#issuecomment-1039114457

yael-vinker commented 2 years ago

Hi, can you please check if you have any files under "CLIPSketch/output_sketches/camel/camel_16strokesseed0"? Also, can you please check if u2net trained weights were downloaded successfully, it should be under "/CLIPSketch/U2Net/saved_models/u2net.pth".

jthteo commented 2 years ago

Thanks for moving here

u2net.pth is in the correct directory. ../camel_16strokes_seed0 contains two empty directories: jpg_logs and svg_logs

leonardopetrini commented 2 years ago

Possibly an extra / is present in run_object_sketching.py either at line 45 or 82..?

jthteo commented 2 years ago

Line 42 does not seem to the problem.

Line 82 seems to be referring to a non-existent config.npy file which is named in the error message. I cannot find any sign of this file in the folders. I tried renaming and putting the config.py file from the main directory but it doesn't work either as it doesn't recognise it as for the pickel.

yael-vinker commented 2 years ago

This error means that there was an exception during running. When execution is done successfully, a "config.npy" file should appear with all the information about the specific session. I pushed an update to print a more informative error message. Can you please follow the instructions from scratch with the updated version and let me know what error message do you get?(: