facebookresearch / ClassyVision

An end-to-end PyTorch framework for image and video classification
https://classyvision.ai
MIT License
1.59k stars 278 forks source link

No such file or directory: '/usr/classy_vision/classy_train.py' #738

Closed feng257 closed 3 years ago

feng257 commented 3 years ago

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

  1. pip install classy_vision
  2. classy-project my-project

Traceback (most recent call last): File "/usr/local/bin/classy-project", line 48, in shutil.copy(classy_train_path, destination_path) File "/usr/lib/python3.6/shutil.py", line 245, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "/usr/lib/python3.6/shutil.py", line 120, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: '/usr/classy_vision/classy_train.py'

Environment

Collecting environment information... PyTorch version: 1.6.0 Is debug build: False CUDA used to build PyTorch: 10.1 ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.3 LTS (x86_64) GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Clang version: Could not collect CMake version: Could not collect

Python version: 3.7 (64-bit runtime) Is CUDA available: True CUDA runtime version: 10.1.243 GPU models and configuration: GPU 0: GeForce GTX 1080 Ti Nvidia driver version: 450.80.02 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 HIP runtime version: N/A MIOpen runtime version: N/A

Versions of relevant libraries: [pip3] numpy==1.18.5 [pip3] torch==1.6.0 [pip3] torchvision==0.7.0 [conda] blas 1.0 mkl
[conda] cudatoolkit 10.1.243 h6bb024c_0
[conda] mkl 2020.1 217
[conda] mkl-service 2.3.0 py37he904b0f_0
[conda] mkl_fft 1.1.0 py37h23d657b_0
[conda] mkl_random 1.1.1 py37h0573a6f_0
[conda] numpy 1.18.5 py37ha1c710e_0
[conda] numpy-base 1.18.5 py37hde5b4d6_0
[conda] pytorch 1.6.0 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch [conda] torchvision 0.7.0 py37_cu101 pytorch

mannatsingh commented 3 years ago

Hi @feng257 you first need to cd to the project directory, i.e. -

pip install classy_vision
classy-project my-project
cd my-project
./classy_train.py --config configs/template_config.json