(assuming that conda and/or miniconda are already installed)
-
Create a conda environment with a few packages initialized.
conda create -n faces python=3.6 cudatoolkit cudnn cmake numpy ipython -
Activate the environment.
| { | |
| "hooks": { | |
| "PreToolUse": [ | |
| { | |
| "matcher": "ExitPlanMode", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "code \"$(ls -t ~/.claude/plans/*.md | head -1)\"", | |
| "timeout": 5 |
| import { McpAgent } from "agents/mcp"; | |
| import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; | |
| import { z } from "zod"; | |
| import { GoogleGenerativeAI } from "@google/generative-ai"; | |
| import { Readability } from '@mozilla/readability'; | |
| import { parseHTML } from 'linkedom'; | |
| type Env = { | |
| MyMCP: DurableObjectNamespace<MyMCP>; | |
| GEMINI_API_KEY: string; |
| using UnityEngine.Rendering.Universal; | |
| public class DownSamplingRenderFeature : ScriptableRendererFeature | |
| { | |
| DownSamplingRenderPass _renderPass; | |
| public override void Create() | |
| { | |
| // パスの作成 | |
| _renderPass = new DownSamplingRenderPass |
| # remove driver if you after uninstall see MorphVOX Audio in Sound Settings | |
| sudo rm -rf /Library/Audio/Plug-Ins/HAL/SBVirtualMic.driver | |
| # restart audio deamon | |
| sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` |
| # -*- coding: utf-8 -*- | |
| # @Author: fyr91 | |
| # @Date: 2019-10-22 15:05:15 | |
| # @Last Modified by: fyr91 | |
| # @Last Modified time: 2019-10-30 11:25:26 | |
| import cv2 | |
| import numpy as np | |
| import onnx | |
| import onnxruntime as ort | |
| from onnx_tf.backend import prepare |
| import numpy as np | |
| import random | |
| import math | |
| import cv2 | |
| from PIL import Image | |
| import sys | |
| def detect_markers(im): | |
| markers = [] | |
| # 輪郭線抽出のための二値化 |
| import numpy as np | |
| import random | |
| import math | |
| import cv2 | |
| from PIL import Image | |
| def recognize(im): | |
| # 輪郭線抽出のための二値化 | |
| im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY) | |
| im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0) |