Skip to content

Commit

Permalink
Fix SUN397.tar.gz link in README, and add shebangs to executables
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewearl committed May 7, 2016
1 parent fdad36b commit a419ffd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ explanation.

Usage is as follows:

1. `extractbgs.py SUN397.tar.gz`: Extract ~3GB of background images from the [SUN database](http://groups.csail.mit.edu/vision/SUN/)
into `bgs/`. (`bgs/` must not already exist.) The tar file (39GB) can be [downloaded here](http://groups.csail.mit.edu/vision/SUN1old/SUN397.tar).
1. `./extractbgs.py SUN397.tar.gz`: Extract ~3GB of background images from the [SUN database](http://groups.csail.mit.edu/vision/SUN/)
into `bgs/`. (`bgs/` must not already exist.) The tar file (39GB) can be [downloaded here](http://vision.princeton.edu/projects/2010/SUN/SUN397.tar.gz).

2. `gen.py 1000`: Generate 1000 test set images in `test/`. (`test/` must not
2. `./gen.py 1000`: Generate 1000 test set images in `test/`. (`test/` must not
already exist.) This step requires `UKNumberPlate.ttf` to be in the current
directory, which can be [downloaded here](http://www.dafont.com/uk-number-plate.font).

3. `train.py`: Train the model. A GPU is recommended for this step.
3. `./train.py`: Train the model. A GPU is recommended for this step.

4. `detect.py in.jpg weights.npz out.jpg`: Detect number plates in an image.
4. `./detect.py in.jpg weights.npz out.jpg`: Detect number plates in an image.

The project has the following dependencies:

Expand Down
2 changes: 2 additions & 0 deletions detect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# Copyright (c) 2016 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 2 additions & 0 deletions extractbgs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# Copyright (c) 2016 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 2 additions & 0 deletions gen.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# Copyright (c) 2016 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 2 additions & 0 deletions train.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python
#
# Copyright (c) 2016 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down

0 comments on commit a419ffd

Please sign in to comment.