Open creativesh opened 10 months ago
were you able to inference it?
Hello,
I tried to run your train.py
code in a Google Colab environment using the following setup:
# Install Miniconda
!wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
# Update PATH to include conda
import sys
sys.path.append('/usr/local/lib/python3.10/site-packages')
# Initialize Conda
!conda init bash
!source ~/.bashrc
# Clone the CCTV-Gun repository
!git clone https://github.com/srikarym/CCTV-Gun.git
# Change directory to the repository
HOME = "/content/CCTV-Gun"
%cd {HOME}
# Create and activate the conda environment
!conda env create -f requirements/env.yml
!source activate env_cc
# Install additional packages
!pip install openmim
!mim install mmcv-full==1.7.0
!pip install -e .
# Run the training script
!python tools/train.py --config configs/gun_detection/swin_transformer.py --dataset-config configs/_base_/datasets/gun_detection/ucf.py --cfg-options data.samples_per_gpu=6
However, I encountered the following error:
Traceback (most recent call last):
File "/content/CCTV-Gun/tools/train.py", line 9, in <module>
import mmcv
ModuleNotFoundError: No module named 'mmcv'
It seems that the mmcv
package is not being recognized even after following the installation steps. Could you please provide guidance on how to resolve this issue or suggest any modifications to the setup process?
Thank you!
I use ubuntu 20 python 3.10
I have installed these with pip on virtual environment: mmcv-full=1.7.0 torch=1.13.0 mmcls=0.25.0,
but I get the error:
ModuleNotFoundError: No module named 'mmcv._ext'
I have tested various ways from the net, but the problem still exists