Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain details about the files #3

Open
Shakib-IO opened this issue Nov 23, 2020 · 3 comments
Open

Explain details about the files #3

Shakib-IO opened this issue Nov 23, 2020 · 3 comments

Comments

@Shakib-IO
Copy link

Shakib-IO commented Nov 23, 2020

Can you describe the model's files I mean what files put where and how it's linked and how the overall path of files

@MikeM711
Copy link
Owner

MikeM711 commented Nov 23, 2020

Sure, all of the models' files reside inside of data/model-development. For the model, I just ran final_model_1.py x3 times and final_model_2.py x2 times for 5 total .h5 models. That's it when it comes to the deep learning part.

After that, I imported these model files into my Django web backend project inside handwriting/utils/models/. In the backend, I did some manipulation with incoming images that come from the frontend, and made predictions using these .h5 files.

I chose React as the web frontend to communicate these images to Django. The React frontend communicates with the backend using blobs (which were once images of the canvas). Eventually I get a response from the backend on what it predicts and display the result on the frontend.

There is a lot of web development involved in this project, which is more of my strong suit. The actual AI part is just a small section of the project (just the x5 .h5 model files that are used for prediction).

@Shakib-IO
Copy link
Author

Shakib-IO commented Nov 24, 2020 via email

@MikeM711
Copy link
Owner

MikeM711 commented Nov 25, 2020

I send the canvas image blob over to Django inside the /src/components/Canvas/Canvas.js React component and I receive the blob at the corresponding Django POST endpoint: which is in /handwriting/views.py

That might help you out for where the connection is to start you off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants