Giter Club home page Giter Club logo

Comments (9)

CarlosGuemS avatar CarlosGuemS commented on July 26, 2024

Hello!

I'll need some extra information to help you out:

  • May you share the bash command where you call predict.py?
  • May you share the entirety of the terminal output when calling predict.py?
  • Have you done changes to the training or testing pipeline? If so, which?

from gnnetworkingchallenge.

gblessed avatar gblessed commented on July 26, 2024

Hi I am also facing the same problem

from gnnetworkingchallenge.

CarlosGuemS avatar CarlosGuemS commented on July 26, 2024

Hello,

I've tried to re-run the commands as described in the README and wasn't able to find the issue. Could you provide me with more details (i.e. the error message, if you made modifications to the code, which libraries did you use to build your solutions...).

Otherwise I will not be able to help you out.

from gnnetworkingchallenge.

gblessed avatar gblessed commented on July 26, 2024

Ok I have followed the commands in the readme.

The error is this : ValueError: Unable to load weights saved in HDF5 format into a subclassed Model which has not created its variables yet. Call the Model first, then load the weights.

The error is in the line: model.load_weights(args.ckpt_path) in predict.py

Even though the model is in the ckpt_path .. the files i have are :
image

from gnnetworkingchallenge.

gblessed avatar gblessed commented on July 26, 2024

The command I ran is : python3 /home/ec2-user/gnnet-ch23-dataset-cbr-mb/GNNetworkingChallenge-2023_RealNetworkDT/predict.py -ds CBR+MB --ckpt-path ckpt/Baseline_cbr_mb/best_08_10 --tr-path "gnnet-ch23-dataset-cbr-mb/extracted_08_10_cv/0/training" --te-path "/home/ec2-user/gnnet-ch23-dataset-cbr-mb/gnnet-ch23-toy-dataset/extracted_toy" --toy

from gnnetworkingchallenge.

CarlosGuemS avatar CarlosGuemS commented on July 26, 2024

I think I know what the issue is: "--ckpt-path" should point to the specific checkpoint, not the folder it is in. Try using "--ckpt-path ckpt/Baseline_cbr_mb/best_08_10/22-41.9264" instead. Let me know if it works or the issue still persists.

from gnnetworkingchallenge.

gblessed avatar gblessed commented on July 26, 2024

Yes, it has worked. Thanks !

from gnnetworkingchallenge.

CarlosGuemS avatar CarlosGuemS commented on July 26, 2024

You're welcome, I'm glad it was solved!

@jonyejin Can you try to see if it works for you now?

from gnnetworkingchallenge.

jonyejin avatar jonyejin commented on July 26, 2024

It worked out for me too! Thanks to @CarlosGuemS and @gblessed. I'll close the issue!

from gnnetworkingchallenge.

Related Issues (11)

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.