<commit_before>#include <iostream>

#include <boost/filesystem.hpp>

#include "elm/core/core.h"
#include "elm/core/debug_utils.h"
#include "elm/core/layerconfig.h"
#include "elm/core/inputname.h"
#include "elm/io/readnyudepthv2labeled.h"
#include "elm/layers/layerfactory.h"
#include "elm/layers/mlp.h"

using namespace std;
namespace bfs=boost::filesystem;
using namespace cv;
using namespace elm;

int main() {

    cout<<elm::GetVersion()<<endl;

    return 0;
}
<commit_msg>load nyu depth v2 data<commit_after>#include <iostream>

#include <boost/filesystem.hpp>

#include <opencv2/highgui/highgui.hpp>

#include "elm/core/core.h"
#include "elm/core/cv/mat_utils.h"
#include "elm/core/debug_utils.h"
#include "elm/core/layerconfig.h"
#include "elm/core/inputname.h"
#include "elm/io/readnyudepthv2labeled.h"
#include "elm/layers/layerfactory.h"
#include "elm/layers/mlp.h"

using namespace std;
namespace bfs=boost::filesystem;
using namespace cv;
using namespace elm;

int main() {

    cout<<elm::GetVersion()<<endl;

    bfs::path p("/media/win/Users/woodstock/dev/data/nyu_depth_v2_labeled.mat");

    ReadNYUDepthV2Labeled reader;
    int nb_items = reader.ReadHeader(p.string());

    ELM_COUT_VAR(nb_items);

    for(int i=0; i<10; i++) {

        ELM_COUT_VAR(i);

        cv::Mat bgr, labels, depth;
        reader.Next(bgr, depth, labels);

        cv::imshow("image", bgr);
        cv::imshow("depth", elm::ConvertTo8U(depth));
        cv::imshow("labels", elm::ConvertTo8U(labels));
        cv::waitKey(0);
    }

    return 0;
}

{'fraction_non_alphanumeric': 0.1610608020698577, 'fraction_numerical': 0.009055627425614488, 'mean_word_length': 4.316151202749141, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1790679', 'n_tokens_mistral': 603, 'n_tokens_neox': 586, 'n_words': 103}