-
Notifications
You must be signed in to change notification settings - Fork 79
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
Train code #12
Comments
Hi @johnwlambert ,Thank you for helping me solve the question. According to the link you provided, I found that the MSEG-Semantic code I downloaded is different from the code in your link. |
Hi @luocmin, I didn't quite understand your question -- do you mind explaining a bit more about the issue you are facing? The training script in the Can you pull the latest into your clone/fork of the repo? There shouldn't be any breaking changes. |
@johnwlambert ,My question is why the code I downloaded does not have some configuration files such as training.md. |
@johnwlambert ,The problem with different codes I found that there are different branches in a warehouse. I see ccsa_train.py in the code domain_generalization. Is this script used for training? Because you didn’t describe how to train in the project description. |
Could you let me know more about which model you would like to train (on which datasets, using which taxonomy, using which resolution, and which training technique) and I can point you to the relevant config? There are admittedly a ton of experiment config files since we released dozens of models. |
I'm basically trying to solve the training of lane markings by trying to think of you as being able to train multiple data sets to achieve generalization. At present, I have remAP,relabel the relevant data set according to the MSEG-API provided by you. But I have a question about the difference between data set remap and relabel. |
I see, thanks for the explanation. Adding lane markings to the universal taxonomy is an interesting experiment and could be quite valuable for self-driving applications. We excluded it from the universal taxonomy since it didn't adhere to the principles in our decision tree (from our paper, since they are marked as "road" in Cityscapes, BDD, IDD, COCO, ADE20K etc). I'm interested to hear what you discover. The The relevant config is Have you downloaded all the datasets as described here, and do the unit tests pass successfully at the end? |
|
I just updated https://github.com/mseg-dataset/mseg-semantic/blob/master/training.md. Can you send me the exact commands you are running? If the following script were named
#!/bin/sh
PYTHON=/home/anaconda3/envs/pth13/bin/python
config=config/final_train/$1
use_mgda=$2
exp_name=$3
new_folder=$4
mkdir -p ${new_folder}
cp -r config consistency dataset lib model multiobjective_opt pba_utils taxonomy tool util vis_utils ${new_folder}
cp taxonomy* ${new_folder}
cd ${new_folder}
echo 'CD into the destination folder'
exp_dir=${exp_name}
model_dir=${exp_dir}/model
result_dir=${exp_dir}/result
now=$(date +"%Y%m%d_%H%M%S")
mkdir -p ${model_dir} ${result_dir}
export PYTHONPATH=./
$PYTHON -u tool/train.py \
--config=${config} use_mgda ${use_mgda} save_path ${model_dir} auto_resume ${model_dir} \
2>&1 | tee ${model_dir}/train-$now.log |
I am running directly in pycharm right click, no command |
I studied your paper because I set up to do illegal identification of vehicles on the road, so I need to identify the types of lane lines: double yellow solid lines, zebra crossings, bus lanes, stop lines Wait. So can the author give me some suggestions? Will the weights obtained from your code training help me? According to your prompt, I found that the specific lane types on the road are not distinguished, but they are all recognized as road, but I want to train through the methods provided in your paper to obtain pre-training weights, and then use them and exclusively for In the data set of the lane recognition network that trains itself in the marked category, is this method feasible? Because I don’t have enough time now, I would like to ask the author to help me answer it, thank you |
Author, I see your code, I am very confused, unable to start, feel that I am too stupid |
Hi @luocmin, I think you could use your mseg-3m model as a starting point, and replace the final few layers with an expanded taxonomy or just your classes of interest. Then you could fine-tune on Mapillary for your desired classes. Alternatively, you could train from scratch with the expanded taxonomy. You will need to pass the arguments I mentioned above via command line python -u tool/train.py --config=${config} use_mgda ${use_mgda} save_path ${model_dir} auto_resume ${model_dir} |
1、I have seen the configuration file. One data set USES one GPU for multi-data set training, but I don't have enough hardware resources. I only have four Gpus at most,Can I train? |
Hi @luocmin , please find answers to your questions below:
|
1、1. Like the author’s data set, the data set is processed according to the author’s method. I haven’t started training yet. I consulted the teacher today. The purpose of studying the author’s code is to learn the roadside environment, such as Railings, buildings, etc. As for lane recognition, he said that because the author’s weight is too large and inappropriate, I need to train a small weight |
1、Which resolution would you like to train at? (480p, 720p, or 1080p)----480p |
May I ask the txt file in mseg-api/mseg/dataset_lists/, does the author provide a script to generate the txt file of the data set path in the code? |
Thanks for catching this, that was a deprecated name -- should be |
If you only have 4 cards, instead of 7, and you still want to train on all 7 datasets, you will need to re-write some training logic. We make the assumption that a user would have at least 7 cards. Instead of running each iteration over samples from the 7 datasets (7 dataloaders, one in each process), you could run 1 training iteration with 4 datasets, then another training iteration with the other 3 datasets, etc. Alternatively, you could concat all training images into 1 dataloader, and then shard that across the 4 gpus in DistributedDataParallel. Either way, you will need to re-write some code. |
Regarding the scripts to generate the txt files in |
@luocmin I may understand your problem, you just downloaded codes from branch 'master', but the training scripts and configs are in branch 'train'. Just change the branch and you can train whole model. |
Does this repository provide training code? I only see the test code
The text was updated successfully, but these errors were encountered: