テスト
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
<html> | |
<head> | |
<title>vosk test</title> | |
<script type="application/javascript" src="https://cdn.jsdelivr.net/npm/vosk-browser@0.0.3/dist/vosk.js"></script> | |
<script> | |
// | |
let model = null | |
// 初期化処理 | |
async function init() { |
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 { Form, Select } from 'antd'; | |
import React from 'react'; | |
import Webcam from 'react-webcam'; | |
interface ExtendedHTMLVideoElement extends HTMLVideoElement { | |
requestVideoFrameCallback(callback: () => void): number | |
} | |
const App = () => { | |
const [deviceId, setDeviceId] = React.useState("") |
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
ARG PYTORCH="1.5" | |
ARG CUDA="10.1" | |
ARG CUDNN="7" | |
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel | |
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0+PTX" | |
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all" | |
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" |
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 sys | |
import time | |
import cv2 | |
import numpy as np | |
### VALUES | |
NUM_REPEAT = 10000 | |
### Read source image | |
# img_src = cv2.imread("lena.jpg") |
This file has been truncated, but you can view the full file.
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
0:00:00.000063000 30316 0000012716A4C000 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.2 | |
0:00:00.001554000 30316 0000012716A4C000 INFO GST_INIT gst.c:587:init_pre: Using library installed in e:\gstreamer\1.0\x86_64\lib | |
0:00:00.003094000 30316 0000012716A4C000 DEBUG GST_MEMORY gstallocator.c:589:_priv_gst_allocator_initialize: memory alignment: 7 | |
0:00:00.004543000 30316 0000012716A4C000 DEBUG GST_MEMORY gstallocator.c:565:gst_allocator_sysmem_init: init allocator 0000012716A4F010 | |
0:00:00.005993000 30316 0000012716A4C000 DEBUG GST_MEMORY gstallocator.c:207:gst_allocator_register: registering allocator 0000012716A4F010 with name "SystemMemory" | |
0:00:00.007708000 30316 0000012716A4C000 INFO GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages | |
0:00:00.008124000 30316 0000012716A4C000 DEBUG GST_ELEMENT_PADS gstelement.c:302:gst_element_base_class_init: type GstElement : factory |
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
from enum import Enum | |
class NMSType(Enum): | |
PY_NMS = 1 | |
CPU_NMS = 2 | |
GPU_NMS = 3 | |
default_nms_type = NMSType.PY_NMS |
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
#!/usr/bin/python | |
# -*- encoding: utf-8 -*- | |
from logger import setup_logger | |
from model import BiSeNet | |
import torch | |
import os | |
import os.path as osp |
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
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
black = "*" | |
[packages] | |
pyzmq = "*" |
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
02-Jul-2018 16:55:09.904 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.31 | |
02-Jul-2018 16:55:09.907 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 27 2018 20:24:25 UTC | |
02-Jul-2018 16:55:09.907 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.31.0 | |
02-Jul-2018 16:55:09.907 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 | |
02-Jul-2018 16:55:09.908 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0 | |
02-Jul-2018 16:55:09.908 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 | |
02-Jul-2018 16:55:09.909 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jre1.8.0_171 | |
02-Jul-2018 16:55:09.909 情報 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_171-b11 | |
02 |
NewerOlder