question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I get *.modal file?

See original GitHub issue

I am unable to generate a modal file, how can I generate this modal file, here are the logs sudoku_solver.py

C:\Users\bewit\miniconda3\python.exe C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py
Traceback (most recent call last):
  File "C:/Users/bewit/Downloads/sudoku-solver-master/sudoku_solver.py", line 14, in <module>
    model = load_model('model/best_model_lenet_aug_loss_3.model')
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 149, in load_model
    loader_impl.parse_saved_model(filepath)
  File "C:\Users\bewit\miniconda3\lib\site-packages\tensorflow_core\python\saved_model\loader_impl.py", line 83, in parse_saved_model
    constants.SAVED_MODEL_FILENAME_PB))
OSError: SavedModel file does not exist at: model/best_model_lenet_aug_loss_3.model/{saved_model.pbtxt|saved_model.pb}

Process finished with exit code 1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
avasidcommented, Jul 22, 2020

@bewithdhanu EnglishImg is a dataset, not a model. Extract the tgz archive in /model directory, which should result in a /model/English directory. After that, run the following script/code from the /model directory,

import os
from shutil import copy
dirs = sorted(os.listdir("./English/Img/GoodImg/Bmp/"))[1:10]
os.makedirs("./data", exist_ok=True)
for i,dir in enumerate(dirs,1):
    i = str(i)
    os.makedirs(os.path.join("./data",i),exist_ok=True)
    dir_path = os.path.join("./English/Img/GoodImg/Bmp/",dir)
    files = os.listdir(dir_path)
    for fil in files:
        copy(os.path.join(dir_path,fil),os.path.join("./data",i))

This should result in a data folder in /model. Now first run train_char74k.py which will train and save a model. And then run sudoku_solver.py.

0reactions
ngtrphuongcommented, Aug 10, 2020

The trained model did not work as expected, The digit recognizer works quite messy,

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Make Bootstrap Modal with File Upload and Preview
In this tutorial, I show how you can use Bootstrap Modal to upload image file and display preview using jQuery AJAX and PHP....
Read more >
Bootstrap Modal with File Upload and Preview (example)
You can use the CSS from another Pen by using its URL and the proper URL extension.
Read more >
How to open a modal from a different file - Stack Overflow
I have a bunch of modals inside my index.html file and in order to make it more readable I would like to put...
Read more >
how to upload file using modal - Laracasts
i want to upload a file using modal in my form this is my modal. Copy Code <div id="tambah-modal" class="modal fade " role="dialog">...
Read more >
Nice and clean file upload modal window made with vue + ...
The modal consists of a drag&drop area where the user can drop files or click to choose from computer and a list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found