1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Merge pull request #15057 from l-bat:fix_vizualizer

* Fix dumpToFile

* Add test

* Fix test
This commit is contained in:
Lubov Batanina
2019-07-18 18:41:08 +03:00
committed by Alexander Alekhin
parent c12e26ff28
commit 12fdaf895e
3 changed files with 28 additions and 1 deletions
+7
View File
@@ -2903,6 +2903,13 @@ String parseLayerParams(const String& name, const LayerParams& lp) {
String Net::dump()
{
CV_Assert(!empty());
if (impl->netInputLayer->inputsData.empty())
CV_Error(Error::StsError, "Requested set input");
if (!impl->netWasAllocated)
impl->setUpNet();
std::ostringstream out;
std::map<int, LayerData>& map = impl->layers;
int prefBackend = impl->preferableBackend;