Ditto icon indicating copy to clipboard operation
Ditto copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory:

Open NsiriRoua opened this issue 3 years ago • 12 comments
trafficstars

Hello , this error comes when I do the Training , Is there any solution

File "C:\Users\Labor\anaconda3\envs\Ditto\lib\runpy.py", line 234, in _get_code_from_file with io.open_code(decoded_path) as f: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Labor\Digital-Twin\Ditto\logs\runs\2022-05-19\Ditto_s2m-10-04-35\run.py'

NsiriRoua avatar May 19 '22 09:05 NsiriRoua

I found thqt the original problem is . Error locating target 'src.models.geo_art_model_v0.GeoArtModelV0', see chained exception above. full_key: model

NsiriRoua avatar May 19 '22 11:05 NsiriRoua

But I couldn´t resolve it

NsiriRoua avatar May 19 '22 11:05 NsiriRoua

Hmm, that's wired. Because the datamodule is first instantiated here. If there's no problem with the datamodule, there should be no problem with the model. Can you post your running commands and the full error log here?

Steve-Tod avatar May 19 '22 18:05 Steve-Tod

the command is with single GPU only

image

the output

image

NsiriRoua avatar May 24 '22 09:05 NsiriRoua

Hmmm that's weird, I run the same code but no such error. Can you try PYTHONPATH=. python run.py experiment=Ditto_s2m?

Steve-Tod avatar May 27 '22 16:05 Steve-Tod

Yes , I tried it, nothing is happend, the error is same

NsiriRoua avatar Jun 01 '22 15:06 NsiriRoua

Then can you run the demo notebook? https://github.com/UT-Austin-RPL/Ditto/blob/master/notebooks/demo_depth_map.ipynb

Steve-Tod avatar Jun 02 '22 18:06 Steve-Tod

Yes tried run it and I got this error

image

image

NsiriRoua avatar Jun 03 '22 13:06 NsiriRoua

Hmmm that's weird, it seems you can initialize the model in the notebook but not from the script.

One thing to try is run python in the root directory of the repo, then run import src.models.geo_art_model_v0.GeoArtModelV0 and see what happens.

Steve-Tod avatar Jun 08 '22 00:06 Steve-Tod

Yes , I tried it, nothing is happend, the error is same

The problem is with numpy version. If you are using conda env then follow the two steps below and you are good to go with training. conda uninstall numpy conda install numpy

mumairhassan avatar Jun 22 '22 14:06 mumairhassan

Good to know that! Is there any other problem?

Steve-Tod avatar Jun 24 '22 05:06 Steve-Tod

Thanks for above solution. It seems that the default NumPy will report error. Use pip to upgrade doesn't work. But using conda to install can solve the problem ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Jianghanxiao avatar Jul 11 '22 00:07 Jianghanxiao