Skip to content

Instantly share code, notes, and snippets.

View ayutaz's full-sized avatar

yousan ayutaz

View GitHub Profile
import glob
import os
from reazonspeech.nemo.asr import load_model, transcribe, audio_from_path
import csv
import json
import librosa
# 実行時にHugging Faceからモデルを取得します (2.3GB)
model = load_model(device='cuda')
# RPG World Creation
**Human:**
あなたはRPGの世界を想像できる神です。
以下の条件に沿って世界を想像してください
* 冒険者が冒険できるようにモンスターのレベル対応が分けられている
* どの地域にどのレベル帯のモンスターがいるのかのマップが存在している
* 冒険者はモンスターを倒すごとに経験値とお金を得ることができる
* モンスターはレベルに比例した経験値とお金を持っている
* この世界にはスキルと魔法という概念があり、レベルが上がるごとにスキルもしくは魔法を取得できる。
@ayutaz
ayutaz / chatGPT-contents
Last active January 15, 2023 14:06
EMNISTを学習してONNXに出力するプログラムを作成するときにChatGPTに聞いた内容
手書きアルファベットの学習モデルのONNXを取得したい
手書きアルファベットの学習モデルのONNXを取得するためには、次のステップを踏む必要があります。
手書きアルファベットのデータセットを収集する。
そのデータセットを使用して、ニューラルネットワークをトレーニングする。
ONNX形式に変換する。
ONNX形式のモデルをダウンロードまたは取得する。
@ayutaz
ayutaz / index.html
Created February 12, 2020 22:26
SoundLibraryのコード
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Semantic UI を読み込む -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui-css@2.4.1/semantic.min.css">
<link rel="stylesheet" href="main.css">
<script src="https://maps.googleapis.com/maps/api/js?key=<your google maps key>"></script>
import tweepy
import config
import json
MY_ID = '自分のユーザーの名前[@から始まる方ではない]'
# OAuth認証
auth = tweepy.OAuthHandler(config.consumer_key,
config.consumer_secret)
auth.set_access_token(config.access_token,
import tweepy
import config
# OAuth認証
auth = tweepy.OAuthHandler(config.consumer_key,
config.consumer_secret)
auth.set_access_token(config.access_token,
config.access_token_secret)
#利用制限にひっかかた時に必要時間待機する
@ayutaz
ayutaz / code.py
Created December 25, 2019 03:20
Which one of the tweets is "しんどい" or "しあわせ"?
import tweepy
import config
import numpy as np
import matplotlib.pyplot as plt
# OAuth認証
auth = tweepy.OAuthHandler(config.consumer_key,config.consumer_secret)
auth.set_access_token(config.access_token,config.access_token_secret)
#利用制限にひっかかた時に必要時間待機する
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraControll : MonoBehaviour {
    // wasdでカメラの上下左右移動
    // Rで初めの位置に戻る
    [SerializeField] private float cameraSpeed = 0.03f;
    // カメラ移動の速度
@ayutaz
ayutaz / code1.cs
Created December 24, 2019 17:33
Twityを使い,UnityでTwitterを使う(特定のワードを検索をする,VR空間上に生成して表示する)      続き
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Twity.DataModels.Responses;
using UnityEngine.UI;
public class EventHandler : MonoBehaviour {
    private config key;
    public GameObject prefab;
    GameObject temp;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Twity.DataModels.Responses;
public class EventHandler : MonoBehaviour {
    private config key;
    void Start () {
        key = GameObject.Find("Config").GetComponent<config>();
        Twity.Oauth.consumerKey       = key.GetConsumerKey();