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

API Structure Front End : Python Model #1

Open
AdarshRevankar opened this issue Apr 26, 2020 · 4 comments
Open

API Structure Front End : Python Model #1

AdarshRevankar opened this issue Apr 26, 2020 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested Required An important feature required for further development

Comments

@AdarshRevankar
Copy link
Owner

AdarshRevankar commented Apr 26, 2020

Structure in which parameters will be sent, either in Django or Flask, Update here with details. This is further required how model must handle that and process further.
@shubham298 Please do interact with @Akshaya520 to implement this.

@Akshaya520 Please do research about Flask & Django, Decide and inform which suits best for our application.

@AdarshRevankar AdarshRevankar added help wanted Extra attention is needed question Further information is requested labels Apr 26, 2020
@AdarshRevankar AdarshRevankar added the Required An important feature required for further development label Apr 27, 2020
@AdarshRevankar
Copy link
Owner Author

AdarshRevankar commented Apr 27, 2020

This is the current Architecture of the PhotoGAN. Please do refer to this architecture as it contains information that has to be passed.


1. Front-end to Pre-Processor
Segmentation Label Image + Name
Style Image ID

2. Pre-Processor to Model
Segmenetation Map + Style Image + Instance Image
Directory Information

3. Model to Front-End
Output Image Path

@AdarshRevankar
Copy link
Owner Author

@shubham298 I have obtained the solution from your repository Flask GAN Application. Further development can be added to the current repository

@AdarshRevankar
Copy link
Owner Author

@shubham298 please do add OnClick image saving feature, to the front-end JS

@AdarshRevankar
Copy link
Owner Author

#6 Is the initial interfaced build, where

  • Communication between Web Interface to Python Back End
  • Canvas drawing is converted to base64 information and API Request is sent to the Python BackEnd.
  • The API Request contains a JSON Object having filename, style_index, ImageData64.
  • We extract all the information by indexing with request.values[index]
  • Here then these base64 bytes are transformed to binary using binascii.a2b_base64 library
  • This binary information is stored in the local storage

This is the current web interface view
Annotation 2020-05-08 233351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested Required An important feature required for further development
Projects
None yet
Development

No branches or pull requests

3 participants