|
@@ -571,9 +571,9 @@ void SemSegContextTree::train ( const LabeledSet * trainp )
|
|
Timer timer;
|
|
Timer timer;
|
|
timer.start();
|
|
timer.start();
|
|
|
|
|
|
- vector<int> zsizeVec;
|
|
|
|
- getDepthVector ( trainp, zsizeVec );
|
|
|
|
bool run_3dseg = conf->gB ( "debug", "run_3dseg", true );
|
|
bool run_3dseg = conf->gB ( "debug", "run_3dseg", true );
|
|
|
|
+ vector<int> zsizeVec;
|
|
|
|
+ getDepthVector ( trainp, zsizeVec, run_3dseg );
|
|
|
|
|
|
// ProgressBar pb ( "compute feats" );
|
|
// ProgressBar pb ( "compute feats" );
|
|
// pb.show();
|
|
// pb.show();
|
|
@@ -766,16 +766,14 @@ void SemSegContextTree::train ( const LabeledSet * trainp )
|
|
}
|
|
}
|
|
|
|
|
|
// Type 3: type 2 features on context channels
|
|
// Type 3: type 2 features on context channels
|
|
- for ( int i = 0; i < classes; i++ )
|
|
|
|
- {
|
|
|
|
- channelType.push_back ( 3 );
|
|
|
|
- }
|
|
|
|
|
|
+ if ( ftypes > 3 )
|
|
|
|
+ for ( int i = 0; i < classes; i++ )
|
|
|
|
+ channelType.push_back ( 3 );
|
|
|
|
|
|
// Type 4: type 0 features on context channels
|
|
// Type 4: type 0 features on context channels
|
|
- for ( int i = 0; i < classes; i++ )
|
|
|
|
- {
|
|
|
|
- channelType.push_back ( 4 );
|
|
|
|
- }
|
|
|
|
|
|
+ if ( ftypes > 4 )
|
|
|
|
+ for ( int i = 0; i < classes; i++ )
|
|
|
|
+ channelType.push_back ( 4 );
|
|
|
|
|
|
// 'amountTypes' sets upper bound for usable feature types
|
|
// 'amountTypes' sets upper bound for usable feature types
|
|
int amountTypes = 5;
|
|
int amountTypes = 5;
|