Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about script files #13

Closed
bluvory opened this issue May 12, 2021 · 5 comments
Closed

Questions about script files #13

bluvory opened this issue May 12, 2021 · 5 comments
Labels
good first issue Good for newcomers individual Individual problem and need package error Error from external package

Comments

@bluvory
Copy link

bluvory commented May 12, 2021

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.

@yuantn
Copy link
Owner

yuantn commented May 12, 2021

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.

@bluvory
Copy link
Author

bluvory commented May 14, 2021

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?

@yuantn
Copy link
Owner

yuantn commented May 14, 2021

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.

@yuantn yuantn added the package error Error from external package label May 19, 2021
@bluvory
Copy link
Author

bluvory commented May 21, 2021

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?

@yuantn
Copy link
Owner

yuantn commented May 21, 2021

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.

@yuantn yuantn closed this as completed Jun 11, 2021
@yuantn yuantn added the good first issue Good for newcomers label Jun 11, 2021
@yuantn yuantn added the individual Individual problem and need label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers individual Individual problem and need package error Error from external package
Projects
None yet
Development

No branches or pull requests

2 participants