Skip to content

Can you share the code snippet to train the whole net? #2

Description

@sunbingfeng

Hi,

I generated the imdb file using your default script, and wrote a script to train the network, but it failed.

So really appreciate it if you can share your training codes.@wzhshi

The code I used:

clc;
close all;
clear all;

run '.\matconvnet-1.0-beta25\matlab\vl_setupnn.m'

imdb = load('.\data\model_64_96_Adam\imdb.mat')
batch = 10;

net = cnn_CSNetPlus_init_dagnn();

[net, stats] = cnn_CSNetPlus_train_dag(net, imdb, batch);

The errors are as below:

Reference to non-existent field 'images'.

Error in cnn_CSNetPlus_train_dag (line 50)
if isempty(opts.val), opts.val = find(imdb.images.set==2) ; end

Error in CSNetPlus_train (line 14)
[net, stats] = cnn_CSNetPlus_train_dag(net, imdb, batch);

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions