How to use ML.Net or Tensorflow.NET to get something from tranied saved data by tensorflow?

mc 3,701 Reputation points
2020-11-29T07:47:30.147+00:00

There is a data file that is tensor flow trained and saved data trained by python.

I want to read it and use it by ML.NET.can it be true?

1.to use the data I have to write the model right?
2.there is a model that is code in python which is used to train it. I have to make a .net one ?
3.If I have the .net model how to use the trained saved file?

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
150 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Philipp Gruber 6 Reputation points
    2020-12-11T06:41:21.98+00:00

    In general you can use pretrained models with ML.NET to make predictions. It doesn't matter if they are trained with python or not. Important thing is that the model is available in a format supported by ML.NET (e.g .TensorFlow, ONNX, Infer.NET). When you use a Tensorflow model make sure it is frozen.

    To start with ML.NET have a look at the tutorial page. When you play a little bit with the examples you get familiar with how ML.NET works. The process to load model and preform prediction is always quite the same. Just some method names differ a bit depending on the used model type.

    I think for you the tutorial Generate an ML.NET image classification model from a pre-trained TensorFlow model is the most interesting. It shows how to use an existing/pretrained Tensorflow model for prediction.
    The part with training in tutorial you can simply skip (it's just a so called transfer learning). It shows how you can do it, but it is not needed when you model already matches your requirements.
    Hint: Even when you don't need to perform training, you have to execute the ".Fit()" method. In that case load an empty Enumerable as data and use it as "training data".

    1 person found this answer helpful.
    0 comments No comments

  2. Tim Roberts 81 Reputation points
    2020-11-29T07:49:56.017+00:00

    Microsoft.ML.Transforms.TensorFlowModel can load a TensorFlow model and make predictions.

    0 comments No comments

  3. mc 3,701 Reputation points
    2020-11-30T02:28:02.66+00:00

    @Tim Roberts thank you for your answer.

    how to make it while there is only python model?

    I have to write in in .net right?


  4. Lotus 365 0 Reputation points
    2023-08-25T09:56:33.7233333+00:00

    In a world where the boundaries between reality and imagination often blur, online platforms have emerged as portals to new dimensions. Among these, Lotus 365 Official shines as a beacon of creativity and adventure, offering a unique escape into the realm of the online fantasy universe. With a blend of cutting-edge technology, interactive storytelling, and boundless creativity, Lotus 365 Official is more than a platform—it's a journey where dreams truly become reality.

     

    The allure of the online fantasy universe lies in its ability to transport us from the mundane to the extraordinary. Lotus 365 Official takes this concept to a whole new level by providing a sanctuary for those seeking refuge in realms filled with magic, heroes, and mythical creatures. The platform acts as a bridge between the mundane routine of daily life and the enchanting landscapes of our wildest dreams.

     

    Immersive Worlds Unveiled

     

    At the heart of Lotus 365 Official's appeal is its ability to create immersive worlds that captivate the senses and ignite the imagination. These virtual realms are meticulously designed, each with its own lore, history, and inhabitants. Stepping into these worlds is like stepping into a storybook where you're not just a reader, but an active participant.

     

    Imagine finding yourself in the bustling streets of a medieval fantasy city, where market vendors peddle their wares and knights roam in shining armor. Or perhaps you'd prefer the tranquil serenity of an elven forest, where ancient trees whisper secrets and mystical creatures offer guidance. These are just glimpses of the myriad of possibilities that Lotus 365 Official presents to its users.

     

    Interactive Adventures and Personal Agency

     

    Unlike passive forms of entertainment, Lotus 365 Official empowers users with agency, allowing them to shape the course of their adventures. Through interactive storytelling, players can make choices that influence the outcome of their journey. Whether it's deciding the fate of a kingdom, forming alliances with characters, or solving intricate puzzles, every decision adds a layer of depth to the narrative.

     

    This aspect of interactivity not only makes the experience engaging but also fosters a sense of ownership over the stories being told. Players aren't just spectators; they're co-creators of the worlds they explore. This collaborative storytelling creates a bond between the player and the fantasy universe, making the experience all the more memorable and impactful.

     

    Community and Connection

     

    In a world where physical distances often separate us, Lotus 365 Official brings people together through shared experiences. The platform boasts a vibrant community of like-minded individuals who come together to discuss their adventures, share tips, and even collaborate on quests. This sense of camaraderie turns what could be a solitary escape into a social experience.

     

    Whether it's forming guilds to tackle epic challenges or engaging in role-playing interactions, the community aspect of Lotus 365 Official fosters connections that transcend the digital realm. Lifelong friendships have been forged within the virtual confines of the platform, proving that even in a fantasy universe, real human connections thrive.

     

    Pushing Technological Boundaries

     

    The allure of the online fantasy universe isn't solely tied to the narrative—it's also a testament to the technological advancements that make these experiences possible. Lotus 365 Official leverages cutting-edge graphics, artificial intelligence, and immersive technologies to create a seamless and visually stunning environment.

     

    Realistic physics, dynamic lighting, and meticulously crafted landscapes come together to create a sense of immersion that's remarkably close to reality. This technological prowess enhances the suspension of disbelief, allowing users to forget they're interacting with a screen and instead believe they're wandering through a fantastical realm.

     

    A Pathway to Creativity

     

    Beyond the predefined adventures and quests, Lotus 365 Official provides a canvas for those who wish to explore their creative side. The platform offers tools that enable users to craft their own stories, design unique characters, and even build their own virtual spaces. This feature not only sparks creativity but also fosters a deeper appreciation for the art of storytelling.

     

    Users can become the authors of their own narratives, weaving tales that reflect their innermost fantasies and ideas. These user-generated stories further enrich the ever-expanding tapestry of the online fantasy universe, ensuring that there's always something new and exciting to discover.

     

    Conclusion

     

    In the online fantasy universe of Lotus 365 Official, dreams cease to be mere figments of imagination—they transform into tangible realities. Through its immersive worlds, interactive storytelling, vibrant community, and technological prowess, the platform offers an unparalleled escape from the ordinary. It's a reminder that the human spirit is boundless, capable of conjuring entire universes that reflect our most profound desires and aspirations. So, if you've ever yearned to soar on the wings of a dragon, explore enchanted realms, or rewrite the fate of kingdoms, look no further than Lotus 365 Official. Here, dreams truly become reality.

    0 comments No comments