Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
otb
otb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 298
    • Issues 298
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #1725

Closed
Open
Opened Sep 25, 2018 by raffaelegaetano@raffaelegaetano

TrainImagesClassifier raise an error if no validation is requested (-sample.vtr 0)

Description

In the TrainImagesClassifier application, an error is raised if no validation is requested (no io.valid input and sample.vtr 0) Gives: 2018-09-25 13:11:28 (FATAL): itk::ERROR: Failed to open GDALDataset file bayes.pl.model_samplesValid_1.shp :

Steps to reproduce

Run a training on any dataset using no validation dataset and the option sample.vtr set to 0.

Configuration information

Not relevant (happens systematically on all tested builds).

POSSIBLE WORKAROUND adding the following line:

fileNames.sampleValidOutputs.clear();

just after line 132 of file /Modules/Applications/AppClassification/otbTrainImagesClassifier.cxx

seems to fix the issue on my side.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: orfeotoolbox/otb#1725