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 asyncio | |
import logging | |
from enum import Enum | |
from typing import Optional | |
# pip install bleak | |
from bleak import BleakClient, BleakScanner, BLEDevice | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) |
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
""" | |
Easy Anime Face Expressions | |
Custom script for AUTOMATIC1111/stable-diffusion-webui to generate face expressions of anime characters. | |
Powered by cascade classifier from nagadomi/lbpcascade_animeface. | |
Usage: | |
1. Download this file to `scripts/easy_anime_face_expressions.py`. | |
2. Start the webui. | |
3. Generate base image with "closed mouth" in prompt. (or first expression tag you will put into the textbox.) |
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
""" | |
async_itertools module | |
This module provides a set of utility functions for working with async iterables. | |
It includes the following functions: | |
- afilter(func, iterable): Filters the given async iterable with the provided function. | |
- amap(func, iterable): Maps the given function onto each item of the async iterable. | |
- areduce(func, iterable): Reduces the async iterable to a single output with the provided function. | |
- achain(*iterables): Chains the given async iterables together into a single async iterable. |
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 argparse | |
import asyncio | |
from contextlib import contextmanager | |
from functools import cached_property | |
from typing import Any, Callable, Generator, Optional, Tuple | |
import pyaudio | |
import torch | |
from audiocraft.data.audio import audio_write | |
from audiocraft.models.musicgen import MusicGen |
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
# Original code: Apache License 2.0 | |
# https://github.com/espnet/espnet/blob/master/LICENSE | |
# Modified by: esnya | |
# https://github.com/esnya | |
from espnet2.bin.tts_inference import Text2Speech | |
from espnet2.text.phoneme_tokenizer import ( | |
pyopenjtalk_g2p_accent_with_pause, | |
pyopenjtalk_g2p_prosody, | |
) |
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
using UdonSharp; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
namespace EsnyaAircraftAssets | |
{ | |
[UdonBehaviourSyncMode(BehaviourSyncMode.Continuous)] |
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
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
#if !COMPILER_UDONSHARP && UNITY_EDITOR | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine.SceneManagement; |
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
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
using UdonRadioCommunication; | |
public class PassengerSeat : UdonSharpBehaviour | |
{ | |
public EngineController EngineControl; | |
public GameObject LeaveButton; |
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
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
// using InariUdon.UI; | |
using UCS; | |
namespace EsnyaAircraftAssets | |
{ | |
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)] |
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
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon.Common.Interfaces; | |
#if !COMPILER_UDONSHARP && UNITY_EDITOR | |
using System.Linq; | |
using System.Reflection; | |
using UdonSharpEditor; | |
using UnityEditor; | |
#endif |
NewerOlder