YOLOX RMPOLY For Python

本算法为适应robomaster比赛,而改动自矩形识别的yolox算法。 基于旷视科技YOLOX,实现对不规则四边形的目标检测 TODO 修改onnx推理模型 更改/添加标注: 1.yolox/models/yolox_polyhead.py: 1.1继承yolox/models/yolo_head.py YOLOXHead类,修改代码使其输出变为四点。 1.1.1修改构造函数 1.1.2修改get_output_and_grid函数,使其grid变为4对xy坐标的形式 1.1.3修改forward函数 1.1.4修改get_loses 1.1.5把自带的l1损失函数改成smoothl1,注意它自带的是算的xywh,要改成xyxyxyxy 正样本匹配策略还是依靠dynamic-k,用的是不规则四边形的最小外接矩形的iou 2.yolox/models/losses.py:(弃用) 新增PolyIOULoss类,iou是四边形的最小外接矩形iou,并新增四个坐标点的smoothl1_loss(弃用) 3.yolox/utils/boxes.py: 3.1增加order_corners函数,用于给不规则四边形的四个点排序 3.2增加minimum_outer_rect函数,用于求解四边形的最小外接矩形 3.3增加poly_adjust_box_anns函数 4.新增exps/yolox_s_rmpoly.py配置文件 5.新增yolox/exp/yolox_poly_base.py配置文件基类 6.新增yolox/data/datasets/rmpoly.py 6.1新增RMPOLYDataset类 6.1.1修改数据集读取方式,读取八点 6.1.2修改pull_item 6.1.3修改load_anno 7.yolox/data/data_augment.py 7.1新增PolyTrainTransform类,对四点数据进行数据增强(未完待续) 7.2poly_random_affine 7.2poly_apply_affine_to_bboxes 8.yolox/data/datasets/mosaicdetection.py 8.1新增PolyMosaicDetection(未完待续) 8.2_polymirror 9.yolox/models/yolox.py 9.1 YOLOX类: 为了适应yolox/models/yolox_polyhead.py中YOLOXPolyHead类的get_losses函数返回字典,修改forward函数中训练时返回值。(弃用) 可以试着把求解回归损失的smoothl1_loss改成归一化后的坐标再求损失。 Introduction YOLOX is an anchor-free version of YOLO, with a simpler design but better performance! It aims to bridge the gap between research and industrial communities.For more details, please    

Read more

A youtube downloader. Made of flask and yt-dlp

Getting started View screenshot Installation $ git clone https://github.com/abhint/youtube-downloader.git Change directory $ cd youtube-downloader Virtual Environment Optional $ pip install virtualenv$ virtualenv venv$ source venv/bin/activate Install dependencies $ pip install -r requirements.txt Run the Bot $ python main.py Heroku Deploy Built With Python Flask – The Python micro framework for building web applications. yt-dlp – A youtube-dl fork with additional features and fixes Contributing Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull […]

Read more

Linux Security and Monitoring Scripts

These are a collection of security and monitoring scripts you can use to monitor your Linux installation for security-related events or for an investigation. Each script works on its own and is independent from other scripts. The scripts can be set up to either print out their results, send them to you via mail, or using [AlertR] as notification channel. Repository Structure The scripts are located in the directory scripts/. Each script contains a short summary in the header of […]

Read more

.bvh to .mcfunction file converter

.bvh file to .mcfunction converter Example video of it in action: https://www.youtube.com/watch?v=L2yVFUgoeBY This program lets you import armature animations into Minecraft by converting .bvh files into .mcfunction. Using programs like blender, you can export animations to .bvh which can be converted by this program into .mcfunction. See example.py for an example. There is a lot to write so it is recommended that you make a separate file to run the program. Python: Create a folder named ‘data’ in the same […]

Read more

A python bot to automate BombCrypto game

This is a python bot to automate BombCrypto game. Logs in to the game, reconnects when needed, closes error warnings, sends heroes to work or home automatically, has Telegram integration and lets you know by message or call if the farm stop. It is fully open source and free, compatible with Windows and Ubuntu. Telegram: https://t.me/+WXjrE1Kdb1U1Mzg0 🎁 Donation: BUSD/BCOIN (BEP20): 0x8c38512beca8b0b06bf4e85f67ee64a7dcdaa11a – 27/Dec/21 (15%) (30%) (50%) (70%) (85%) (100%) [————–|————|————-|————|———-|———] ($500) | $45    

Read more

Open source Brawl Stars server emulator for version 29 of the game

Open source Brawl Stars server emulator for version 29 of the game! (Remake) What’s working ? Battles Trophies in offline battles Power Play with Power Play points ChampionShip Home Brawlers from boxex All skins unlocked Gadgets and Star Powers Notifications Shop Special offers Boxes Gold and other resources PinPack Skins Club Join Leave Chat Update settings Bot commands …and much more! Prerequisites Run Server On Windows: Download Python 3.7 or newer version from official page. Download the server and extract […]

Read more

Attention for PyTorch with Linear Memory Footprint

Unofficially implements https://arxiv.org/abs/2112.05682 to get Linear Memory Cost on Attention (+ some sidekick speedup on the GPU when compared to reference implementation in JAX) Usage: git clone https://github.com/CHARM-Tx/linear_mem_attention-pytorch cd linear_mem_attention_pytorch python setup.py install Usage: High Level from linear_mem_attention_torch.

Read more

GUI for visualization and interactive editing of SMPL-family body models ie. SMPL, SMPL-X, MANO, FLAME

Introduction This is a simple Open3D-based GUI for SMPL-family body models. This GUI lets youplay with the shape, expression, and pose parameters of SMPL, SMPL-X, MANO, FLAMEbody models. Features include: Interactive editing of shape, expression, pose parameters 01_model_editing.mp4 Visualize body model joints and joint names 02_visualize_joints.mp4 Simple IK solver to match an input pose 03_simple_ik.mp4 Save edited model parameters 04_save_params.mp4 05_viewing.mp4

Read more

A low dependency and really simple to start project template for Python Projects

A low dependency and really simple to start project template for Python Projects. HOW TO USE THIS TEMPLATE DO NOT FORK this is meant to be used from Use this template feature. Click on Use this template Give a name to your project(e.g. my_awesome_project recommendation is to use all lowercase and underscores separation for repo names.) Wait until the first run of CI finishes(Github Actions will process the template and commit to your new repo) If you want codecov Reports […]

Read more
1 299 300 301 302 303 928