From 5c09bbf04b5d3b8eacf9e45338a4964192459a7b Mon Sep 17 00:00:00 2001 From: Wang Ning Date: Tue, 16 Jul 2024 16:20:36 +0800 Subject: [PATCH] update the license and the model info for sd-turbo --- README.md | 17 +++++++++-------- samples/stable_diffusion/stable-diffusion.js | 9 ++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9dacc95..f04c7b1 100644 --- a/README.md +++ b/README.md @@ -105,11 +105,12 @@ https://_your-server-ip_:8080 Some samples for this repository are based on modifications of examples from [Transformers.js](https://github.com/xenova/transformers.js)(Apache-2.0) and [MediaPipe](https://github.com/google-ai-edge/mediapipe)(Apache-2.0). -| Sample | Source | Model | Model License | -| --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| [Background Removal](./samples/image_background_removal/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/remove-background-client) | [RMBG-1.4](https://huggingface.co/briaai/RMBG-1.4) | [bria-rmbg-1.4](https://bria.ai/bria-huggingface-model-license-agreement/) | -| [Image to text](./samples/image_to_text/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [ViT-GPT2](https://huggingface.co/nlpconnect/vit-gpt2-image-captioning) | Apache-2.0 | -| [Question Answering](./samples/question_answering/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [DistilBERT](https://huggingface.co/distilbert/distilbert-base-cased-distilled-squad) | Apache-2.0 | -| [Summarization](./samples/summarization/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [DistilBART CNN](https://huggingface.co/sshleifer/distilbart-cnn-6-6) | Apache-2.0 | -| [Phi3 WebGPU](./samples/phi3-webgpu/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat) | [Phi-3-mini-4k](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx) | MIT | -| [LLM Gemma](./samples/llm_gemma/) | [MediaPipe](https://github.com/google-ai-edge/mediapipe) | [Gemma-2B](https://www.kaggle.com/models/google/gemma/tfLite/) | [Gemma](https://ai.google.dev/gemma/terms) | +| Sample | Source | Model | Model License | +| --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | +| [Background Removal](./samples/image_background_removal/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/remove-background-client) | [RMBG-1.4](https://huggingface.co/briaai/RMBG-1.4) | [bria-rmbg-1.4](https://bria.ai/bria-huggingface-model-license-agreement/) | +| [Image to text](./samples/image_to_text/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [ViT-GPT2](https://huggingface.co/nlpconnect/vit-gpt2-image-captioning) | Apache-2.0 | +| [Question Answering](./samples/question_answering/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [DistilBERT](https://huggingface.co/distilbert/distilbert-base-cased-distilled-squad) | Apache-2.0 | +| [Summarization](./samples/summarization/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/main/examples/demo-site) | [DistilBART CNN](https://huggingface.co/sshleifer/distilbart-cnn-6-6) | Apache-2.0 | +| [Phi3 WebGPU](./samples/phi3-webgpu/) | [Transformers.js](https://github.com/xenova/transformers.js/tree/v3/examples/webgpu-chat) | [Phi-3-mini-4k](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx) | [MIT](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx/blob/main/LICENSE) | +| [LLM Gemma](./samples/llm_gemma/) | [MediaPipe](https://github.com/google-ai-edge/mediapipe) | [Gemma-2B](https://www.kaggle.com/models/google/gemma/tfLite/) | [Gemma](https://ai.google.dev/gemma/terms) | +| [Stable Diffusion Turbo](./samples/stable_diffusion/) | [guschmue/ort-webgpu](https://github.com/guschmue/ort-webgpu/tree/master/sd-turbo) | [Stable Diffusion Turbo](https://huggingface.co/schmuell/sd-turbo-ort-web/) | [STABILITY AI COMMUNITY LICENSE AGREEMENT](https://huggingface.co/stabilityai/sd-turbo/blob/main/LICENSE.md) | diff --git a/samples/stable_diffusion/stable-diffusion.js b/samples/stable_diffusion/stable-diffusion.js index c3cb6b0..1fc2202 100644 --- a/samples/stable_diffusion/stable-diffusion.js +++ b/samples/stable_diffusion/stable-diffusion.js @@ -1,8 +1,7 @@ -/*------------------------------------------------------------------------------------------------- - * Copyright (C) 2024 Intel Corporation. All rights reserved. - * Licensed under the Apache License 2.0. See LICENSE in the project root for license information. - * SPDX-License-Identifier: Apache-2.0 - *-----------------------------------------------------------------------------------------------*/ +/* + * This file is modified based on + * https://github.com/guschmue/ort-webgpu/blob/master/sd-turbo/index.html + */ /* eslint-disable no-undef */ /* eslint-disable no-unused-vars */