Ownage of ESPI image inference
Project description
espiownage
Utterly dominating ESPI image inference (Pronounced like "espionage" but with a little "own" in the middle.)
Welcome to the new phase of SPNet developement. In this incarnation, we'll make it an image-segmentation code instead of an object detector, and we'll use fast.ai.
Install
Preliminaries
Ubuntu (& probably other Linuxes):
$ sudo apt-get install python3-tk
Mac (with Homebrew)
$ brew install python3-tk
Then on all systems, let's set up a virtual environment called espi
.
I like to put my environments in ~/envs
:
$ mkdir ~/envs; python3 -m venv ~/envs/espi; source ~/envs/espi/bin/activate
And then you want/need to update pip
in case it gave you an ancient version:
$ python3 -m pip install pip --upgrade
Then to install this package all you do is...
$ pip install espiownage
Note: the requirements on this package follow a "kitchen sink" approach so that everything a student might need gets installed, e.g. jupyter
and more. (And wheel
because it speeds up the installations...I think.)
How to use
If you're reading this, you probably have access to the "real" data, which sit (on my machine) in ~/Dropbox/Data/espiownage-data
. So change to that directory, i.e.,
$ cd ~/Dropbox/Data/espiownage-data
...(or whereever you've got it) for what follows.
AND THEN, so we don't "clobber" each other's work, make your own copy (~17MB) of the main annotations
directory, as in append your last name (hawley, morrison, morgan, etc):
$ cp -r annotations annotations_yourlastname
and then we'll each edit our own copy just to avoid...confusion.
ellipse editor
$ ellipse_editor --files=annotations_yourlastname/*.csv
See ellipse_editor -h
for command-line options. You can, for example, edit only one strike's worth of data by running
$ ellipse_editor --files=annotations_yourlastname/06241902*.csv
or a range of annotations, as in ellipse editor --files=annotations_yourlastname/06241902_proc_001*.csv
Contributing / Development
You'll want to install more things:
$ pip install nbdev twine
Fork this repo. When you want to update your repo, one macro does it all (see Makefile
):
$ make git_update
Asides
Handy tips for students
I can never remember how to start up virtual environments / or I don't want to remember. So in my ~/.bashrc
file (you may have a ~/.zshrc
) I put in a line where I define an alias/function I call gimme
, that reads like so:
gimme() { source ~/envs/"$1"/bin/activate; }
(note that in order for this alias to be recognized, you need to either logout and log back in or else run $ source ~/.bashrc
)
Then when I want to load environment like espi
I just type...
$ gimme espi
--Scott H. Hawley, September 2021
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file espiownage-0.0.19.tar.gz
.
File metadata
- Download URL: espiownage-0.0.19.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff6aa9d6dfbdbde8ff679592feff77acbe4c732b958ffd6372aca7e62f3f6fe6 |
|
MD5 | e17251ccccdceaeb6b38078d309dad08 |
|
BLAKE2b-256 | 1ac60cd78ec41518b5ba6c8ca637200c1550560845257243ff0e4c9b171dda11 |
File details
Details for the file espiownage-0.0.19-py3-none-any.whl
.
File metadata
- Download URL: espiownage-0.0.19-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6648414baf59bbe4ad37fbc80ca84033625445df5f76707fc72a4ba62cd78b82 |
|
MD5 | 39bd00a2332b6fb01163c5b9eee8eb13 |
|
BLAKE2b-256 | c616fad20f411737e00e1c4c9454191dcccaf95ec0ad1ba3fe50d23d8443d46a |