Giter Club home page Giter Club logo

Comments (2)

aurooj avatar aurooj commented on July 1, 2024

@happsky : Sorry for being late in responding to your query. If you want to train it on your own dataset, you can follow the standard training procedure mentioned at the github repo of RefineNet
You will need to create files gen_classs_info_<dataset-name>.m and my_gen_ds_info_<dataset-name>.m with information about your dataset and train, val, test splits.
If your dataset also has 2 classes: hand and background, then you can use the same files from folder refinenet_files in this repo.

I hope it helps. Let me know if you have any more queries.

from hand-segmentation-in-the-wild.

aurooj avatar aurooj commented on July 1, 2024

To be more clear, this is what you need to do:

  • Make a clone from refinenet github repo

  • If you want to train on your own dataset, you need to follow the demo training file: demo_refinenet_train.m.

  • You need to provide the information for your dataset and the classes. If you go through the file demo_refinenet_train.m, you will find the dataset information is defined in the file my_gen_ds_info_voc.m, so follow this file to write your own file for defining the dataset, e.g., my_gen_ds_info_<dataset-name>.m

  • There's a line in the file my_gen_ds_info_voc.m:

ds_info.class_info=gen_class_info_voc();

where the class information is specified in the function gen_class_info_voc(), and you need to follow this to write your own function.

  • Since you will need a new classification layer, you need to skip the initiation of the last classification layer from the trained model.

In the file gen_network_main.m to skip this initialization, You will find this line in the file:

loss_group_info=gen_network_loss_group(train_opts, net_config, group_output_info);

add the following lines after the above line to stop the initiation of the classification layer:


% if you want to increase the learning rate for the last classification layer, uncomment this line:

% loss_group_info.net_info.ref.lr_multiplier=10;```

from hand-segmentation-in-the-wild.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.