A Telegram bot to index Chinese and Japanese group contents, works with @lilydjwg/luoxu

luoxu-bot 是类似于 luoxu-web 的 CJK 友好的 Telegram Bot,依赖于 luoxu 所创建的后端。 开发中使用到的 Telethon 需要 Python 3+ 前往 luoxu 根据相关内容配置并运行 luoxu,等待消息索引完毕 由于 Telegram 的消息样式问题,建议修改 luoxu 项目中的 luoxu/db.py 文件,将 SEARCH_LIMIT 修改为 10 克隆 本项目 , 并使用 pip3 install -r requirements.txt 等方式安装依赖 前往 My Telegram ,获取 API development tools 中的 api_id 和 api_hash 在 Telegram 中向 @BotFather 申请 Bot,获取 bot token(由数字:数字字母构成,如1111122222:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) 在 Telegram 中向 @getidsbot 发送 /start 以获取你的 Telegram 账号 ID(my_id) 打开 config.py 并填写相关字段(如果你在 luoxu 中修改了接口的端口或者前缀等,请同步修改) 使用 python3 main.py 运行项目,当出现 开摆 时代表项目已启动,可以向自己的 Bot 尝试发送指令(请提前向自己的 […]

Read more

Aircache: an open-source caching and security solution that can be integrated with most decoupled apps that use REST APIs for communicating

Aircache is an open-source caching and security solution that can be integrated with most decoupled apps that use REST APIs for communicating. It follows microservice compatibility and makes it possible to integrate it as part of a more comprehensive solution just as caching and security layer or on its own for increasing speed and decreasing the rate limit impact of no-code and low-code solutions. Why Caching? The reason that someone should use a caching solution is that caching can speed […]

Read more

Pre-trained Deep Convolution Neural Network Model With Attention for Speech Emotion Recognition

Pre-trained Deep Convolution Neural Network Model With Attention for Speech Emotion RecognitionHua Zhang, Ruoyun Gou, Jili Shang, Fangyao Shen, Yifan Wu and Guojun Dai Abstract: Speech emotion recognition (SER) is a difficult and challenging task because of the affective variances between different speakers. The performances of SER are extremely reliant on the extracted features from speech signals. To establish an effective features extracting and classification model is still a challenging task. In this paper, we propose a new method for […]

Read more

Lightweight asyncio compatible utilities for consuming broker messages

aio-message-handler A simple asyncio compatible consumer for handling amqp messages. Installation pip install aio-message-handler Usage example Simple consumer: import asyncio from aio_message_handler.consumer import Consumer async def main(): consumer = Consumer(“amqp://guest:[email protected]/”) @consumer.message_handler(exchange=”myexchange”, binding_key=”key”) async def handler(msg): print(‘received:’, msg.body) msg.ack() await consumer.start() asyncio.run(main())    

Read more

Simulate & classify transient absorption spectroscopy (TAS) spectral features for bulk semiconducting materials (Post-DFT)

PyTASER is a Python (3.9+) library and set of command-line tools for classifying spectral features in bulk materials, post-DFT. The goal of this library is to provide qualitative comparisons for experimental TAS spectra – a complex and tedious process, especially for pristine materials. The main features include: An interactive TAS spectrum for a pristine semiconducting material Isolating spectra for individual band transitions from the overall TAS spectrum for the material. Spectra in different conditions: temperature, carrier concentrations (analogous to pump-probe […]

Read more

Create a table with row explanations, column headers, using matplotlib

Create a table with row explanations, column headers, using matplotlib. Intended usage was a small table containing a custom heatmap. Installation pip install mpl-table Usage Example usage can be found within tests/test_create_table.py, the table is created by passing dataframes containing text values, cell colour values, and text colour values. You’ll probably want to use bbox_inches=”tight” when you fig.savefig. Example output Why Wanted to be able to create tables containing heatmaps, along with row explanations and different treatment of high/low values […]

Read more

Raising and Handling Python Exceptions

A Python program terminates as soon as it encounters an error. In Python, an error can be a syntax error or an exception. In this course, you’ll learn what an exception is and how it differs from a syntax error. After that, you’ll learn about raising exceptions and making assertions. Then, you’ll learn how to catch exceptions to prevent your program from unintentionally ending and to change the control flow of your program: You’ll learn about the basic use of […]

Read more

Vector Quantized Diffusion Model for Text-to-Image Synthesis

Overview This is the official repo for the paper: Vector Quantized Diffusion Model for Text-to-Image Synthesis. VQ-Diffusion is based on a VQ-VAE whose latent space is modeled by a conditional variant of the recently developed Denoising Diffusion Probabilistic Model (DDPM). It produces significantly better text-to-image generation results when compared with Autoregressive models with similar numbers of parameters. Compared with previous GAN-based methods, VQ-Diffusion can handle more complex scenes and improve the synthesized image quality by a large margin. Framework Requirements […]

Read more

Homography Decomposition Networks for Planar Tracking

This project is the offical PyTorch implementation of HDN(Homography Decomposition Networks) for planar object tracking.(AAAI 2022, Accepted) Project Page | Paper @misc{zhan2021homography, title={Homography Decomposition Networks for Planar Object Tracking}, author={Xinrui Zhan and Yueran Liu and Jianke Zhu and Yang Li}, year={2021}, eprint={2112.07909}, archivePrefix={arXiv}, primaryClass={cs.CV} } Installation Please find installation instructions in INSTALL.md. Quick Start: Using HDN Add HDN to your PYTHONPATH

Read more
1 310 311 312 313 314 927