Git Product home page Git Product logo

Comments (5)

muhanzhang avatar muhanzhang commented on July 27, 2024

Hi! It seems it is loading a previously saved model checkpoint. Did you use "--continue_from" and load a previously saved in-memory trained model in the dynamic mode? The dynamic mode will only use the first 1000 training graphs to estimate the $k$ used in SortPooling of DGCNN (see this line), which might result in different $k$ thus different dense dimension before the first linear layer. You can maually set $k$ to your previously obtained $k$ in in-memory mode.

from seal_ogb.

SmnKr avatar SmnKr commented on July 27, 2024

Thanks for your response Muhan.
No, I'm not using "--continue_from" when running the seal_link_pred.py script. These are all options that I'm using for running it in dynamic mode:
--dataset --num_hops --use_feature --use_edge_weight --epochs --num_workers --runs --dynamic_train --dynamic_val --dynamic_test --train_percent --pathdir

from seal_ogb.

muhanzhang avatar muhanzhang commented on July 27, 2024

Then can you show more lines near line 708 of your seal_link_pred.py file? I'd like to know what line 708's model.load_state_dict(torch.load(model_name)) is doing in order to debug.

from seal_ogb.

SmnKr avatar SmnKr commented on July 27, 2024

Yes, sure. These are lines 693-709:

image

from seal_ogb.

muhanzhang avatar muhanzhang commented on July 27, 2024

Thanks. The lines show that you are loading a previously saved model checkpoint. Did you train your model using in-memory mode and here load it in dynamic mode? My previous points are still valid, i.e., the gap causes their used $k$ to be different.

from seal_ogb.

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.