Coder Social home page Coder Social logo

airicbear / cis-4496-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-tdsp-projecttemplate

0.0 0.0 0.0 3.69 GB

Photo-to-Painting Image Translation using CycleGANs

Home Page: https://cis-4496-project.vercel.app/

License: Creative Commons Attribution 4.0 International

Python 17.99% CSS 0.05% TypeScript 81.73% JavaScript 0.24%

cis-4496-project's People

Contributors

aagarwal17 avatar airicbear avatar alphagit avatar danielleodean avatar deguhath avatar georgefaeillo avatar gopitk avatar hangzh-msft avatar josephhaaga avatar

Watchers

 avatar

cis-4496-project's Issues

Improve model loading and inferencing on website

It takes a long time to download the models on the website and the ONNX models take an additional amount of time (rough estimate ~10s) for inferencing. Not only do the ONNX models take more time to inference, but they freeze the entire website when running the inference.

To reproduce this issue, simply upload any image to either model on the website.

Initial ideas:

  • Add progress indicator for model downloading and inferencing
  • Cache models on client side

Models load each time ImageInput component is rendered

The ONNX and TensorFlow.js models are being reloaded each time the ImageInput components are rendered. For example, when you toggle the dark/light theme, the ImageInput component is refreshed which forces the models to be loaded again. We may want to consider decoupling the models from the components.

Implement TensorFlow.js model loading

Following these references:

I attempted to load model via tf.loadLayersModel but ran into the following error:

Error: Unknown layer: Addons>InstanceNormalization. This may be due to one of the following reasons:
1. The layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.
2. The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().

Some references suggested using graph model instead:

References for saving and loading model:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.