Giter Club home page Giter Club logo

Comments (6)

svjan5 avatar svjan5 commented on September 12, 2024 1

Hi @Punchwes,
I have uploaded the checkpoint of the pre-trained model. You can download it from the following link:
https://drive.google.com/open?id=1NmYkldyC23fYmyzooojiF3nlnat7rgP9

I have not personally verified whether we can directly restore the checkpoint with the provided code as there have been a few modifications. However, you can access the parameters from the checkpoint.

from wordgcn.

Punchwes avatar Punchwes commented on September 12, 2024 1

@eyuansu62 If you just want to get parameters or weights you could get to it like below:

ckpt_path = 'best_model/best_int_avg'
reader = tf.train.NewCheckpointReader(ckpt_path)
var_to_shape_map = reader.get_variable_to_shape_map()
embedding = reader.get_tensor('Embed_mat/embed_matrix')

You can get names by var_to_shape_map and use get_tensor to get specific weights.

from wordgcn.

eyuansu62 avatar eyuansu62 commented on September 12, 2024

Hi, @Punchwes , can you use the checkpoint directly? I just restore the model using the checkpoints and it gives some bugs.

from wordgcn.

Punchwes avatar Punchwes commented on September 12, 2024

Hi @eyuansu62 ,

I have not tried to fine-tune the given checkpoint, but I have successfully got access to the parameters in the checkpoint so I guess it should work.

from wordgcn.

eyuansu62 avatar eyuansu62 commented on September 12, 2024

@Punchwes i am really a fresh in tensorflow. I just use the saver.restore but it gives some errors. So could you please tell me how to get access to the parameters in the checkpoints?

from wordgcn.

eyuansu62 avatar eyuansu62 commented on September 12, 2024

@Punchwes Really thanks!

from wordgcn.

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.