Multi-gpu training#12
Draft
qinjian623 wants to merge 6 commits into
Draft
Conversation
Author
|
Sorry for forgetting mention this, So may need some minor changes to use official CULane. if self.image_set == 'test':
self.img_list.append(os.path.join(self.data_dir_path,
l[1:])) # l[1:] get rid of the first '/' so as for os.path.join
else:
self.img_list.append(os.path.join(self.data_dir_path, l))
if self.image_set == 'test':
self.seg_list.append(os.path.join(self.data_dir_path, 'laneseg_label_w16_test', l[1:-3] + 'png'))
else:
self.seg_list.append(os.path.join(self.data_dir_path, 'laneseg_label_w16', l[:-3] + 'png')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new file
train_culane_mp.pywhich is single-node , multi-gpu training script.The original
train_culane.pywas deleted while developing the new one, maybe we should restore it back.Default batch_size is still 2, but it should be too small for multi-gpu training. 64 is acceptable on a 4-V100 node.
A new var
metric_skips=10is introduced. This could low the frequency of f1 metric which using CPU only.Start training with:
to control how many GPUs involved in training.