Perform oocyst segmentation in mercurochrome stained mosquito midgut

Overview

Midgut_oocyst_segmentation

Perform oocyst segmentation in mercurochrome stained mosquito midguts

This oocyst segmentation model also powers the webtool at http://got2findthemall.org/

Requirements to run locally:

(1) Build tools
     Visual Studio build tools if using Windows:
     https://visualstudio.microsoft.com/visual-cpp-build-tools/

     Xcode if using MacOS

     Linux: you should be able to figure this out if you use Linux

(2) Python and packages

Python >3.8

Python packages:
Notes: the listed versions are tested to work. You can use pip to install all the packages listed here,
or create a conda environment using conda_env.yml supplied by this repo
     torch=1.9.1
     torchvision=0.10.0
     torchaudio=0.9.1
     pandas=1.3.3
     pycocotools=2.0.2
     dataclasses=0.6
     typing=3.7.4.3
     opencv-python=4.5.3.56
     xlsxwriter=3.0.1
     detectron2=0.5

For the detectron2 package, you can git clone the repo and install using (must have Git installed):
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' --user

Instructions:

(1) Clone the repository

(2) unzip the two model weight files and keep it in the "model" directory:
     <1> model_0002399.MG.pth
       (unzip from model_0002399.MG.zip.001 and model_0002399.MG.zip.002)
     <2> model_0006199.pth
       (unzip from model_0006199.zip.001 and model_0006199.zip.002)

(3) prepare your own jpeg images and place them in a folder, or use the "test_images" folder

(4) run oocyst segementation with the following command:
     python oocyst_segmentation.py --dir [path to your folder]

(5) Four result files with the same prefix will be generated for each image
      count_N_size.xlsx               oocyst count, area and coordiate of each oocyst, average area
      [prefix].oocyst.jpg                oocyst annotated on the original image
      [prefix].midgut.jpg                midgut annotated on the original image
      [prefix].midgut.MASK.jpg       A full-resolution black-whight MASK of the midgut identified

Owner
Duo Peng
Duo Peng
Python implementation of Newton's Fractal

Newton's Fractal Animates Newton's fractal between two polynomials of the same order. Inspired by this video by 3Blue1Brown. Example fractals can be f

Jaime Liew 10 Aug 04, 2022
Experimental Brawl Stars v36.218 server emulator written in Python.

Brawl Stars v36 Experimental Brawl Stars v36.218 server emulator written in Python. Requirements: Python 3.7 or higher colorama Running the server In

8 Oct 31, 2021
Traffic flow test platform, especially for reinforcement learning

Traffic Flow Test Platform Traffic flow test platform, especially for reinforcement learning, named TFTP. A traffic signal control framework that can

4 Nov 07, 2022
Today I Commit (1일 1커밋) 챌린지 알림 봇

Today I Commit Challenge 1일1커밋 챌린지를 위한 알림 봇 config.py github_token = "github private access key" slack_token = "slack authorization token" channel = "

sunho 4 Nov 08, 2021
The ROS package for Airbotics.

airbotics The ROS package for Airbotics: Developed for ROS 1 and Python 3.8. The package has not been officially released on ROS yet so manual install

Airbotics 19 Dec 25, 2022
Code repository for the Pytheas submersible observation platform

Pytheas Main repository for the Pytheas submersible probe system. List of Acronyms/Terms USP - Underwater Sensor Platform - The primary platform in th

UltraChip 2 Nov 19, 2022
To check my COVID-19 vaccine appointment, I wrote an infinite loop that sends me a Whatsapp message hourly using Twilio and Selenium. It works on my Raspberry Pi computer.

COVID-19_vaccine_appointment To check my COVID-19 vaccine appointment, I wrote an infinite loop that sends me a Whatsapp message hourly using Twilio a

Ayyuce Demirbas 24 Dec 17, 2022
ArinjoyTheDev 1 Jul 17, 2022
Starscape is a Blender add-on for adding stars to the background of a scene.

Starscape Starscape is a Blender add-on for adding stars to the background of a scene. Features The add-on provides the following features: Procedural

Marco Rossini 5 Jun 24, 2022
Predicting Global Crop Yield for World Hunger

Crop Yield And Global Famine - The fifth project I created during my time at General Assembly. I completed this project with three other classmates in the span of three weeks. Most of my work was dir

Adam Muhammad Klesc 2 Jun 19, 2022
Attempt at creating organized collection of little handy snippets of code I'm receiving along the way

ChaosCode Attempt at creating organized collection of little handy snippets of code I'm receiving along the way I always considered coding and program

INFU 4 Nov 26, 2022
Retrying library for Python

Tenacity Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just

Julien Danjou 4.3k Jan 02, 2023
Start and stop your NiceHash miners using this script.

NiceHash Mining Scheduler Use this script to schedule your NiceHash Miner(s). Electricity costs between 4-9pm are high in my area and I want NiceHash

SeaRoth 2 Sep 30, 2022
Alfred 4 Workflow to search through your maintained/watched/starred GitHub repositories.

Alfred 4 Workflow to search through your maintained/watched/starred GitHub repositories. Setup This workflow requires a number of Python modules. Thes

Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 1 Oct 14, 2022
🦕 Compile Deno executables and compress them for all platforms easily

Denoc Compile Deno executables and compress them for all platforms easily. Install You can install denoc from PyPI like any other package: pip install

Eliaz Bobadilla 8 Apr 04, 2022
Машинное обучение на ФКН ВШЭ

Курс "Машинное обучение" на ФКН ВШЭ Конспекты лекций, материалы семинаров и домашние задания (теоретические, практические, соревнования) по курсу "Маш

Evgeny Sokolov 2.2k Jan 04, 2023
Automatically give thanks to Pypi packages you use in your project!

Automatically give thanks to Pypi packages you use in your project!

Ward 25 Dec 20, 2021
This project is about for notifying moderators about uploaded photos on server.

This project is about for notifying moderators (people who moderate data from photos) about uploaded photos on server.

1 Nov 24, 2021
A script for creating battle animations in FEGBA format.

AA2 Made by Huichelaar. I heavily referenced FEBuilderGBA. I also referenced circleseverywhere's Animation Assembler. This is also where I took lzss.p

2 May 31, 2022
A script that convert WiiU BotW mods to Switch

UltimateBoTWConverter A script that convert WiiU BotW mods to Switch. It uses every resource I could find under the sun that allows for conversion, wi

11 Nov 08, 2022