Code Monkey home page Code Monkey logo

Comments (4)

yiren556 avatar yiren556 commented on August 19, 2024

How many epochs can you train? After I modify the epoch, it always ends after epoch9
e0f51241df1776c05f1781607811f25

from matrn.

Mountchicken avatar Mountchicken commented on August 19, 2024

@yiren556
I didn't modify any hyperparameters and the training ended at the 9th epoch.

from matrn.

yiren556 avatar yiren556 commented on August 19, 2024

This is the result of my debugging, I don't understand why it stops
9aef9b27f6f2fe65b148436d0d199d4

from matrn.

byeonghu-na avatar byeonghu-na commented on August 19, 2024

Hi, sorry for late reply and thank you for your interest.

I think you may change charset_path in template.yaml from 'data/charset_62.text' to your own charset, and case_sensitive to True.

As you know, pre-trained language and vision models are trained on 36 characters. Therefore, you need to train these pre-trained models on 90 characters, or you may load these pre-trained models without the final classification layer, which is related to the size of character set.

I think this link is useful to ignore size mismatch problem. (Lightning-AI/pytorch-lightning#4690 (comment))
Apply this methods to loading pre-trained model, which are in below:

MATRN/modules/model.py

Lines 17 to 19 in 57b6b8e

def load(self, source, device=None, strict=True):
state = torch.load(source, map_location=device)
self.load_state_dict(state['model'], strict=strict)

self.load(config.model_language_checkpoint)

self.load(config.model_vision_checkpoint)

from matrn.

Related Issues (20)

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.