Giter Site home page Giter Site logo

ashleve / graph_classification Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 6.0 1.09 MB

Benchmarking GNNs with PyTorch Lightning: Open Graph Benchmarks and image classification from superpixels

License: MIT License

Python 12.48% Jupyter Notebook 85.71% Shell 1.81%
graph-classification superpixels image-classification open-graph-benchmark ogbg hydra pytorch-lightning

graph_classification's Introduction

Hi, I'm Lukas :octocat:

โœจ I like doing open-source and curiosity-driven research.


ashleve stats

graph_classification's People

Contributors

ashleve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

graph_classification's Issues

How can I see the history of loss?

Hi. I'm new to Pytorch lightning, so I don't know how to get the history of loss.
In the default setting, is it saving the history?
I found metric_hist variable, but I can't find that it saves this variable.

By the way, I'm taught a lot from your code. Thank you very much.

unable to run the example

I saw someone in pyg slack channel advocating this repository. It looks quite attractive so I decided to give it a try.
I installed all dependencies and try to run python run.py trainer.gpus=0, but the following error occurs
Would you like to take a look? Thanks!

[2022-05-08 16:44:10,655][src.train][INFO] - Instantiating datamodule <src.datamodules.ogbg_molhiv_datamodule.OGBGMolhiv>
[2022-05-08 16:44:10,949][numexpr.utils][INFO] - Note: detected 128 virtual cores but NumExpr set to maximum of 64, check "NUMEXPR_MAX_THREADS" environment variable.
[2022-05-08 16:44:10,949][numexpr.utils][INFO] - Note: NumExpr detected 128 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
[2022-05-08 16:44:10,949][numexpr.utils][INFO] - NumExpr defaulting to 8 threads.
[2022-05-08 16:44:15,456][src.train][INFO] - Instantiating model <src.models.ogbg_molhiv_model.OGBGMolhivModel>
[2022-05-08 16:44:16,045][torch.distributed.nn.jit.instantiator][INFO] - Created a temporary directory at /tmp/tmp9_3wucw6
[2022-05-08 16:44:16,046][torch.distributed.nn.jit.instantiator][INFO] - Writing /tmp/tmp9_3wucw6/_remote_module_non_sriptable.py
[2022-05-08 16:44:16,073][src.train][INFO] - Instantiating trainer <pytorch_lightning.Trainer>
[2022-05-08 16:44:16,080][pytorch_lightning.utilities.rank_zero][INFO] - GPU available: True, used: True
[2022-05-08 16:44:16,081][pytorch_lightning.utilities.rank_zero][INFO] - TPU available: False, using: 0 TPU cores
[2022-05-08 16:44:16,081][pytorch_lightning.utilities.rank_zero][INFO] - IPU available: False, using: 0 IPUs
[2022-05-08 16:44:16,081][pytorch_lightning.utilities.rank_zero][INFO] - HPU available: False, using: 0 HPUs
[2022-05-08 16:44:16,081][src.train][INFO] - Logging hyperparameters!
Traceback (most recent call last):
  File "run.py", line 37, in main
    return train(config)
  File "/home/chen/fromosu/graph_classification/src/train.py", line 66, in train
    utils.log_hyperparameters(
  File "/home/chen/anaconda3/envs/graph_clf/lib/python3.8/site-packages/pytorch_lightning/utilities/rank_zero.py", line 32, in wrapped_fn
    return fn(*args, **kwargs)
  File "/home/chen/fromosu/graph_classification/src/utils/utils.py", line 153, in log_hyperparameters
    trainer.logger.log_hyperparams(hparams)
AttributeError: 'NoneType' object has no attribute 'log_hyperparams'

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.