Miklashevskaya Darya
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Deep Learning Project Proposal ## The Team * **Evgenia Kivotova** * **Daria Miklashevskaya** * **Yuriy Sukhorukov** ## Problem formulation We aim to create a reliable and high-performance platform for criminal face reconstruction from natural-language descriptions with 70% accuracy of resemblance to the reference images from the dataset, within the period of the current study module. The primary users are the police department and the department's visitors, who describe the images that need to be generated to find missing relatives or violators. The image generation is not only popular and fun topic, but also applicable in many situations. For example, it is common interest of all people to visualise their thoughts and share this image with other people for some reason or just for fun. In our project, we want to build the system which will generate image of a person from free-text describtion in English. ## Who is the user of future product? We think that our application will target the following user groups: - **Police officers.** Text to face application may be useful for quick identikit generation, these users seek generated images of missing people or violators. - **Department visitors.** These users provide natural-language descriptions for the images to be generated. Besides, the functionality allows to further extend the target group to: - **Book readers and publishers.** It is always interesting how novel characters look like, especially when book has no illustrations. Curious readers may use our application to satisfy their interest. Publishers in opposite may populate the book with illustrations quicly and make it more interesting for customers. - **Artists.** In case artists want to create specific character but cannot find suitable reference, they may bescribe what they want to our application and get a bunch of possible pictures to start from. $$~$$ $$~$$ $$~$$ $$~$$ $$~$$ ## How should we frame this problem? It is clear that out target system will represent the collaboration between - some NLP Seq2Vec model (**Encoder**) - Image Generator (**Decoder**). We are still researching for suitable models, but defenitely will use Pytorch for implementation. Clearly, training will be supervised. * We prompt users to give their feedback about the quality of model's output and store querries, feedback and generated image in a database. This data will be included in the health-check report and will help us to further tune the model. Source code will be stored at the [GitLab repository](https://gitlab.com/k0t1k/dl-project) ## What data can we use? We found [Multi-Modal-CelebA-HQ](https://github.com/weihaox/Multi-Modal-CelebA-HQ-Dataset) Dataset containing 30k high resolution images of selebrities with several English-text short appearance descriptions connected to each image. The describtions may contain same information but different form, witch we hope will help the model to stick to concreete words instead of grammatic structure of sentence. ## Performance measure Performance in this context consists of two differnet things * System performance - how fast our system as a whole (website, API endpoint, neural net itself) will perform certain actions, like generating an image of interst or loading webstie pages * Neural net performance - is a measure of **model error** in other words, how good our model is at generating images given the textual description ### How should we measure the performance? First of all the neural net performance may be evaluated using some simularity function between generated image and target face. To measure the load time we can use logging and tools like [Awesome Prometeus](https://github.com/roaldnefs/awesome-prometheus) to monitor the system performance and health $$~$$ $$~$$ $$~$$ ### Is the performance measure aligned with the business objective? Yes, reliability and stability will be provided by the healthcheck tools, to notify the users about the downtime and for logging. The similarity function allows to measure the performance of the model, which is a similarity to the target image (not less than 70%). ### What would be the minimum performance needed to reach the business objective? * We want to keep page loading time withing 2 seconds - tolerable page loading time according to this [research](https://www.researchgate.net/publication/220893869_A_Study_on_Tolerable_Waiting_Time_How_Long_Are_Web_Users_Willing_to_Wait) For the image generation time we want to stay under 10 seconds, which should be doable provided powerfull GPU (RTX2070s) - For image quality we want the results to be at least recognisable as human faces and match textual description, or 70% resemblance to the target pictures from the dataset. ### Is human expertise available? Yes, almost every person is able to evaluate generated image given description. ## Existing solutions and research. There exist several studies that implement the same idea for the English language: - [Faces la Carte: Text-to-Face Generation via Attribute Disentanglement](https://arxiv.org/pdf/2006.07606.pdf): this GAN-based model generates several different faces in response to a single description to cover all unspecified features. - [A Realistic Image Generation of Face From Text Description Using the Fully Trained Generative Adversarial Networks](https://www.researchgate.net/publication/343565403_A_Realistic_Image_Generation_of_Face_From_Text_Description_Using_the_Fully_Trained_Generative_Adversarial_Networks): here, a fully trained GAN is proposed which beats the previous benchmarks. - [Text2FaceGAN: Face Generation from Fine Grained Textual Descriptions](https://arxiv.org/abs/1911.11378): using conditional distribution of faces in the same latent space and a DC-GAN with GAN-CLS loss for learning conditional multi-modality, they show good results and argue against validity of inception score metric for evaluation. - [TediGAN: Text-Guided Diverse Image Generation and Manipulation](https://arxiv.org/abs/2012.03308): they utilize StyleGAN inversion module, visual-linguistic similarity learning, and instance-level optimization to beat the previous benchmarks used for this task. $$~$$ $$~$$ $$~$$ ## How would you solve the problem manually? It is possible to read the descriptions and draw faces with some tools like pensil, pen or paint. ## Assumptions For our work we assume that * Model will be fast enough even when executed on CPU * Desired form of input is text, not something else (voice input, JSON/csv with person attributes, image) * Model is accurate enough so when an image is generated, there will be no need to fine-tune it with querries like "change the eye color". * Users do know English. ### Assumption verification * First three assumptions are not easily-verifiable because we do not have a working model, but there is some clue that at least model will work fast enough on a decent CPU ( we just checked the performance of other relatively-heavy networks) * About the last one, we can consider a possibility of incorporating Russian language

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully