Ditto
Ditto copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory:
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'
I found thqt the original problem is . Error locating target 'src.models.geo_art_model_v0.GeoArtModelV0', see chained exception above. full_key: model
But I couldn´t resolve it
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?
the command is with single GPU only

the output

Hmmm that's weird, I run the same code but no such error. Can you try PYTHONPATH=. python run.py experiment=Ditto_s2m?
Yes , I tried it, nothing is happend, the error is same
Then can you run the demo notebook? https://github.com/UT-Austin-RPL/Ditto/blob/master/notebooks/demo_depth_map.ipynb
Yes tried run it and I got this error


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.
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
Good to know that! Is there any other problem?
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