Pytorch domain library for recommendation systems

Docs TorchRec is a PyTorch domain library built to provide common sparsity & parallelism primitives needed for large-scale recommender systems (RecSys). It allows authors to train models with large embedding tables sharded across many GPUs. TorchRec contains: Parallelism primitives that enable easy authoring of large, performant multi-device/multi-node models using hybrid data-parallelism/model-parallelism. The TorchRec sharder can shard embedding tables with different sharding strategies including data-parallel, table-wise, row-wise, table-wise-row-wise, and column-wise sharding. The TorchRec planner can automatically generate optimized sharding plans for […]

Read more

Python GUI Programming With Tkinter

Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on Windows, macOS, and Linux. Visual elements are rendered using native operating system elements, so applications built with Tkinter look like they belong on the platform where they’re run. Although Tkinter is considered the de facto Python GUI framework, it’s not without criticism. One notable criticism is that GUIs […]

Read more

Using Python’s datetime Module

Python has several different modules to deal with dates and times. This course concentrates on the primary one, datetime. Dates and times are messy things! Shifts due to daylight savings time and time zones complicate any computing with dates and times. In this course, you’ll tackle that messiness and learn: How to use the datetime module What the zoneinfo module does and how to use it How to calculate the difference between two datetime objects    

Read more

Pagination for a User-Friendly Django App

Django has a Paginator class that comes built in and ready to use. Perhaps you have a project on the go, and you’d like to try out the pagination implementations in the following sections with your app as your base. No problem! However, if you want to follow the step-by-step code examples in this tutorial, then you can download the source code for the Django Python wiki project from the Real Python materials repository: This wiki project contains an app […]

Read more

A privacy-focused, intelligent security camera system

A privacy-focused, intelligent security camera system. Features: Multi-camera support w/ minimal configuration. Supports USB cameras and the Raspberry Pi camera module. Motion detection that automatically saves videos and lets you view them in the web app. Encrypted in transit, both from the cameras to the server and the server to your browser. Self-Hosted Free and Open Source Example screenshots Setting up the server Docker: Clone this repository Generate SSL certificates: ./create-certs.sh. Alternatively, you may place your own certs in the […]

Read more

A simple and extensible object detection evaluator in COCO style

Features Extensible user interfaces to deal with different data formats. Support customized evaluation breakdowns, e.g., object size in COCO, difficulty in KITTI, velocity and range in Waymo. Interface for general matching scores, e.g. 2D IoU, 3D rotated IoU, center distance. Support widely-used metrics like AP, AR and customized metrics like average regression errors, average IoUs, etc. Purely based on Python, easy to develop your customized metrics. Installation pip install treelib Clone this repo and run pip install . in the […]

Read more

POC script for Malware Hunting over the WWW

POC script for Malware Hunting over the WWW To start with Malware Hunting, execute: python3 ./lovac.py. The script will start looking for random domain names, download first page to ./lovac_download/ folder and parse interesting strings to the ./lovac_output/ folder. After the tool is done, you can analyze output files manually and run the antivirus scan on download folder. The tool will save current status of discovery process in ./lovac_discovered.txt and ./lovac_tried.txt files. Discover “co.rs” domains, with minimum length 2 and […]

Read more

Mediapipe Face Mesh with python

Here -> https://github.com/k-m-irfan/simplified_mediapipe_face_landmarks, I tried to isolate and simplify face landmarks for selecting points around specific facial features (eyes, iris, eyebrows, lips, and face boundary). But there’s an easier way to do it. We can use the connections argument of the draw_landmarks function of drawing_utils. We can even manually list the points of interest here to make a mesh. For Lips: mp.solutions.face_mesh_connections.FACEMESH_LIPS Left Eye: mp.solutions.face_mesh_connections.FACEMESH_LEFT_EYE Left Iris: mp.solutions.face_mesh_connections.FACEMESH_LEFT_IRIS Left Eyebrow: mp.solutions.face_mesh_connections.FACEMESH_LEFT_EYEBROW Right Eye: mp.solutions.face_mesh_connections.FACEMESH_RIGHT_EYE Right Iris: mp.solutions.face_mesh_connections.FACEMESH_RIGHT_IRIS Right Eyebrow: mp.solutions.face_mesh_connections.FACEMESH_RIGHT_EYEBROW […]

Read more

A lightweight, flexible and novel open source poc verification framework

中文 README pocsploit is a lightweight, flexible and novel open source poc verification framework Pain points of the POC framework in the market There are too many params, I don’t know how to get started, but only some of them are commonly used. YAML poc framework(like nuclei & xray) is not flexible enough. the conversion cost is very high when writing poc. Sometimes it’s hard when encountering non-http protocols. (only hex can be used) Sometimes POC has false positives, which […]

Read more

Send dm when user react to emoji

Send dm when user react to message. ✅ Setup: – Put the token on config file. – Put the message id to listen react. – Put delay before dm. – Put your message. 👀 If you don’t have proxies, desactivate proxy option, or buy them from my shop :p    

Read more
1 171 172 173 174 175 914