View webm-writer2-fixed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a version of this file: https://w3c.github.io/webcodecs/samples/capture-to-file/webm-writer2.js | |
// With these fixed applied: https://github.com/w3c/webcodecs/issues/332#issuecomment-1077442192 | |
/** | |
* A tool for presenting an ArrayBuffer as a stream for writing some simple data | |
* types. | |
* | |
* By Nicholas Sherlock, with updates from jimbankoski | |
* | |
* - make it work off frames with timestamps from webcodecs |
View createCanvasFromRGBAData.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createCanvasFromRGBAData(data, width, height) { | |
// `data` should look something like [[123,32,40,255], [3,233,42,120], ...] | |
if(width*height !== data.length) throw new Error("width*height should equal data.length"); | |
let canvas = document.createElement("canvas"); | |
canvas.width = width; | |
canvas.height = height; | |
let ctx = canvas.getContext("2d"); | |
let imgData = ctx.createImageData(width, height); | |
for(let i = 0; i < data.length; i++) { | |
imgData.data[i*4+0] = data[i][0]; |
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View onnx-runtime-python-inference.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View aaa_usage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as AWS from "./aws_sdk_client_s3_v3.198.0-es.js"; | |
let s3 = new AWS.S3({ | |
region: "YOUR_REGION", | |
endpoint: "YOUR_ENDPOINT_URL_IF_NECCESSARY", | |
credentials: { | |
accessKeyId: "YOUR_ACCESS_KEY", | |
secretAccessKey: "YOUR_SECRET", | |
}, | |
}); |
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View stable_diffusion_jax-to-onnx.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View stable_diffusion_jax-to-onnx.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder