Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Torch needs to adjust models for each dataset #128

Description

@lukeyeager

When using Caffe, DIGITS adjusts the last layer of the network to match the number of classes in the dataset. This is pretty easy, just layer[-1].num_output = num_classes.

It's more complicated in Torch because the network is defined in a piece of lua source code instead of a text file. We need to find some kind of solution for this. Maybe after main.lua reads the model, it can edit that object and adjust the output of the last layer?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions