yuantn/MI-AOD

Questions about script files

bluvory opened this issue · 5 comments

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, the running command should be ./script.sh 0 but not ./script.sh $0. If it still doesn't work, you may try running this command:

tools/dist_train.sh configs/MIAOD.py 1

Hope these commands can help you.

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, the running command should be ./script.sh 0 but not ./script.sh $0. If it still doesn't work, you may try running this command:

/dist_train.sh configs/MIAOD.py 1

Hope these commands can help you.

Thank you. I solved the error, but another error occurred.
The first time I did import mmcv (probably 1.3.3 version), I got an error mmcv>=1.0.5, so when I installed version 1.0.5 ( using this: pip install mmcv-full==1.0.5-f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html), the following errors occur:

 ImportError: cannot import name 'Config' from 'mmcv' (unknown location) 
 ModuleNotFoundError: No module named 'mmcv.utils' 

Can you tell me what version of mmcv is?

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, the running command should be ./script.sh 0 but not ./script.sh $0. If it still doesn't work, you may try running this command:
/dist_train.sh configs/MIAOD.py 1
Hope these commands can help you.

Thank you. I solved the error, but another error occurred.
The first time I did import mmcv (probably 1.3.3 version), I got an error mmcv>=1.0.5, so when I installed version 1.0.5 ( using this: pip install mmcv-full==1.0.5-f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html), the following errors occurs:

 ImportError: cannot import name 'Config' from 'mmcv' (unknown location) 
 ModuleNotFoundError: No module named 'mmcv.utils' 

Can you tell me what version of mmcv is?

It seems that you have installed the mmcv, but have not installed build requirements. Please refer to the step 5 of THIS LINK. The version of mmcv should be 1.0.5, that is OK.

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, the running command should be ./script.sh 0 but not ./script.sh $0. If it still doesn't work, you may try running this command:
/dist_train.sh configs/MIAOD.py 1
Hope these commands can help you.

Thank you. I solved the error, but another error occurred.
The first time I did import mmcv (probably 1.3.3 version), I got an error mmcv>=1.0.5, so when I installed version 1.0.5 ( using this: pip install mmcv-full==1.0.5-f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html), the following errors occurs:

 ImportError: cannot import name 'Config' from 'mmcv' (unknown location) 
 ModuleNotFoundError: No module named 'mmcv.utils' 

Can you tell me what version of mmcv is?

It seems that you have installed the mmcv, but have not installed build requirements. Please refer to the step 5 of THIS LINK. The version of mmcv should be 1.0.5, that is OK.

Thanks, I successfully modified the code according to your advice.
And may I ask one more question?
I want to run miaod with other data, what files and how many should I modify?

Hello, I want to run your code, but there was an error, so I am leaving a question.
When running ./script.sh $0 , the nohup_0.log file is created in the log_nohup folder, but it is empty.
After that, I run the script.sh file, it will not run, and also PYTHONPATH is not printed.
In addition, when running python tools/train.py and python mmdet/apis/train.py on terminal, there is no error and nothing is output.
What should I do in this case? I'd appreciate it if you could give me an answer.

Hello, the running command should be ./script.sh 0 but not ./script.sh $0. If it still doesn't work, you may try running this command:
/dist_train.sh configs/MIAOD.py 1
Hope these commands can help you.

Thank you. I solved the error, but another error occurred.
The first time I did import mmcv (probably 1.3.3 version), I got an error mmcv>=1.0.5, so when I installed version 1.0.5 ( using this: pip install mmcv-full==1.0.5-f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html), the following errors occurs:

 ImportError: cannot import name 'Config' from 'mmcv' (unknown location) 
 ModuleNotFoundError: No module named 'mmcv.utils' 

Can you tell me what version of mmcv is?

It seems that you have installed the mmcv, but have not installed build requirements. Please refer to the step 5 of THIS LINK. The version of mmcv should be 1.0.5, that is OK.

Thanks, I successfully modified the code according to your advice.
And may I ask one more question?
I want to run miaod with other data, what files and how many should I modify?

You should only modify configs/MIAOD.py if you can convert your other training and test data into PASCAL VOC format. It contains all parameters and settings.