Skip to content

get error when try to load a .pkl #215

Open
@Tyofo

Description

@Tyofo

i can't load my work for my project this very annoying, and i not understand clearly the error

when i have finish to execute : ga_instance.run()
i save the work with : ga_instance.save("midas")

i get a warnings:
WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will be empty until you train or evaluate the model.
INFO:tensorflow:Assets written to: ram://5541c4a9-5e22-4f3e-a6cc-dca25eaf7fed/assets
WARNING:tensorflow:Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will be empty until you train or evaluate the model.
INFO:tensorflow:Assets written to: ram://d206d322-d2d8-4a59-912f-15c31ea96a03/assets

i execute: loaded_ga_instance = pygad.load(filename="midas")
i got this error:
FileNotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ram://e787696c-9043-4614-8a19-b5a25761d5fc/variables/variables
You may be trying to load on a different device from the computational device. Consider setting the experimental_io_device option in tf.saved_model.LoadOptions to the io_device such as '/job:localhost'.

During handling of the above exception, another exception occurred:

FileNotFoundError: Error reading the file midas. Please check your inputs.

how i resolve this error please ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions