Closed Loop Control system of Sharp Wave Ripples in Hippocampus CA3 region

Mengzhan (John) code for Closed Loop Control system of Sharp Wave Ripples in Hippocampus CA3 region Creating Python Virtual Environment To run the project, you’ll first need to create a python virtual environment with specific dependencies installed. The packages needed can be found at this ”’clc_packages”’ repository. Link: https://bitbucket.org/LauFoo/clc_packages/src/master/ Create a python virtual environment with pyvenv packages and venv command Go to clc_packages repository and clone it, make a local repository Activate the virtual environment with the line (name_of_venv)Scriptsactivate Change […]

Read more

Vehicle direction identification consists of three module detection , tracking and direction recognization

Vehicle direction identification consists of three module detection , tracking and direction recognization. Algorithm used : Yolo algorithm for detection + SORT algorithm to track vehicles + vector based direction detection Backend : opencv and python Library required: opencv = ‘4.5.4-dev’ scipy = ‘1.4.1’ filterpy lap scikit-image IMPORTANT: I hadn’t uploaded model weights and configuration files (which were used for object detection) here because those were already available in yolo_detection repo download yolo tiny weights , config file and coco.names […]

Read more

An implementation of multimap with per-item expiration backed up by Redis

An implementation of multimap with per-item expiration backed up by Redis. Description This lib is based on: https://quickleft.com/blog/how-to-create-and-expire-list-items-in-redis/ without the need for an extra job to delete old items. Values are internally stored on Redis using Sorted Sets : key1: { (score1, value1), (score2, value2), … } key2: { (score3, value3), (score4, value4), … } … Where the score is the timestamp when the value was added. We use the timestamp to filter expired values and when an insertion happens, […]

Read more

Voice Based Personal Assistant using natural language processing

We have built a Voice based Personal Assistant for people to access files hands free in their device using natural language processing. The features of the assistant are that it can open folders on the voice commands of the user, open files in that folder and also find words in that file and create new file containing pages that had the word user was looking for in the file.We have made this project on python using NLP and libraries like […]

Read more

Predict the latency time of the deep learning models

Step 1. Genernate random parameters and Run them sequentially : $ python3 collect_data.py -gp -ep -pp -pl pooling -num 10 -shuffle -d 1080ti Step 2. Data Timeline parser : $ python3 preprocess_data.py -pt -pl pooling -d 1080ti Step 3. Combine all raw data : $ python3 preprocess_data.py -c -pl pooling -d 1080ti Step 4. Split raw data to train and test data as performance prediction inputs $ python3 preprocess_data.py -sp -pl pooling -d 1080ti Step 5. Train Model :

Read more

Generate an ASCII Art from keyword put in the cli

ascii-art-generator-cli Generate an ASCII Art from keyword put in the cli Install git clone https://github.com/Nathanlauga/ascii-art-generator-cli cd ascii-art-generator-cli pip install -r requirements.txt pip install . Usage ascii-generator –help Usage: ascii-generator [OPTIONS] KEYWORD Shows differents ASCII Art given a keyword You can change the number of columns and the scale. There are 2 gray scale available 10 and 70 (default is 70) Options: -c, –cols INTEGER Number of columns for ASCII Art. -s, –scale FLOAT Height scale for ASCII Art. -m, –more-levels […]

Read more

Extentions to Pycharm code formatting tools

Extentions to Pycharm code formatting tools.Currently supported are flake8 and black on a selected code block. Usage Flake8 [PEP8] validation on selected code block Black formatting on selected code block Installation Install the repo (preferably in conda env or virtualenv): pip install git+https://github.com/haim0n/pycharm_ext_tools.git Add new external tool per utility (e.g. flake8) as follows: File -> Settings -> Tools -> External Tools -> ‘+’ (Add) For conda environment named dev fill in the params:

Read more

A package that allows you to create a key-value vault for storing variables in a global context

How to install? What is this? This is a package that allows you to create a key-value vault for storing variables in a global context. It allows you to set up a keyring with pre-defined constants which act as keys for the vault. These constants are then what is stored inside the vault. A key is just a string, but the value that the key is mapped to can be assigned to any type of object in Python. If the […]

Read more
1 404 405 406 407 408 975