← Open Source
vicariousinc

science_rcn

Reference implementation of a two-level RCN model.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
664
Stars
191
Forks
+0
This week
2
Contributors
Created 2017-10-24 · Updated 2026-10-13 · #15303 today
Top developers
lazaroxvicarious-opensource

vicariousinc/science_rcn is ranked 15,303 with 664 stars.

Same-category comparison

vicariousinc/science_rcn is ranked 15,303 among these 8 peers; wvangansbeke/LaneDetection_End2End is ranked 15,304.

Same-category comparison
NameRankMetrics
sfujim/BCQ15,290
Language:
Python
Stars:
665
Forks:
147
Description:
Author's PyTorch implementation of BCQ for continuous and discrete actions.
bingchenlll/FastGAN-pytorch15,298
Language:
Python
Stars:
664
Forks:
109
Description:
Official implementation of the paper "Towards Faster and Stabilized GAN Training for High-fidelity Few-shot Image Synthesis" in ICLR 2021.
google-deepmind/searchless_chess15,300
Language:
Python
Stars:
664
Forks:
55
Description:
Grandmaster-Level Chess Without Search.
qdrant/quaterion15,301
Language:
Python
Stars:
664
Forks:
47
Description:
Blazing fast framework for fine-tuning similarity learning models.
wvangansbeke/LaneDetection_End2End15,304
Language:
Python
Stars:
664
Forks:
216
Description:
End-to-end Lane Detection for Self-Driving Cars (ICCV 2019 Workshop).
Megvii-BaseDetection/cvpods15,311
Language:
Python
Stars:
663
Forks:
76
Description:
All-in-one Toolbox for Computer Vision Research.
aimagelab/dress-code15,312
Language:
Python
Stars:
663
Forks:
80
Description:
Dress Code: High-Resolution Multi-Category Virtual Try-On. ECCV 2022.
jacobgil/keras-grad-cam15,314
Language:
Python
Stars:
663
Forks:
228
Description:
An implementation of Grad-CAM with keras.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsComputer vision, Datasets, Research
Stars664
Forks191
Contributors2
Created date2017-10-24
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days0
Rank15,303
Previous rank15,124
Rank change-179
7-day stars rank14,921
Previous 7-day stars rank19,148
7-day stars rank change4,227
Total stars rank15,496
Previous total stars rank15,473
Total stars rank change-23
README summary

Reference implementation of Recursive Cortical Network (RCN) Reference implementation of a two-level RCN model on MNIST classification. See the *Science* article "A generative vision model that trains with high data efficiency and breaks text-based CAPTCHAs" and Vicarious Blog for details. Note: this is an unoptimized reference implementation and is not intended for production. It may work on other system platforms but not guaranteed. You will need the packages listed in to be installed. Clone the repository: The code

is pure Python, so you can run it right away, although you will have to uncompress the ZIP in the data folder manually. Alternatively, install with (setting up a virtual environment beforehand is recommended): Run If you installed via you need to activate the virtual environment: To run a small unit test that trains and tests on 20 MNIST images using one CPU (takes ~2 minutes, accuracy is ~60%): To run a slightly more interesting experiment that trains on 100

images and tests on 20 MNIST images using multiple CPUs (takes <1 min using 7 CPUs, accuracy is ~90%): To test on the full 10k MNIST test set, training on 1000 examples (could take hours depending on the number of available CPUs, average accuracy is ~97. 7+%): Blog post Check out our related blog post. Datasets We used the following datasets for the Science paper: CAPTCHA datasets reCAPTCHA (from google. com) MNIST datasets Original (available at With occlusions (by us

) With noise (by us) MNIST licensing Yann LeCun (Courant Institute, NYU) and Corinna Cortes (Google Labs, New York) hold the copyright of MNIST dataset, which is a derivative work from original NIST datasets. MNIST dataset is made available under the terms of the Creative Commons Attribution-Share Alike 3.

Frequently asked questions

How many stars and forks are recorded?

vicariousinc/science_rcn has 664 stars and 191 forks.

What is the repository rank?

vicariousinc/science_rcn is ranked 15,303.

What language and category are recorded?

vicariousinc/science_rcn has 664 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

vicariousinc/science_rcn is compared with wvangansbeke/LaneDetection_End2End, ranked 15,304 with 664 stars.

README

Reference implementation of Recursive Cortical Network (RCN)

Reference implementation of a two-level RCN model on MNIST classification. See the Science article "A generative vision model that trains with high data efficiency and breaks text-based CAPTCHAs" and Vicarious Blog for details.

Note: this is an unoptimized reference implementation and is not intended for production.

Setup

Note: Python 3.9 is supported. The code was tested on OSX 12.3.1. It may work on other system platforms but not guaranteed. You will need the packages listed in requirements.txt to be installed.

Clone the repository:

git clone https://github.com/vicariousinc/science_rcn.git

The code is pure Python, so you can run it right away, although you will have to uncompress the ZIP in the data folder manually.

Alternatively, install with (setting up a virtual environment beforehand is recommended):

python setup.py install

Run

If you installed via make you need to activate the virtual environment:

source venv/bin/activate

To run a small unit test that trains and tests on 20 MNIST images using one CPU (takes ~2 minutes, accuracy is ~60%):

python science_rcn/run.py

To run a slightly more interesting experiment that trains on 100 images and tests on 20 MNIST images using multiple CPUs (takes <1 min using 7 CPUs, accuracy is ~90%):

python science_rcn/run.py --train_size 100 --test_size 20 --parallel

To test on the full 10k MNIST test set, training on 1000 examples (could take hours depending on the number of available CPUs, average accuracy is ~97.7+%):

python science_rcn/run.py --full_test_set --train_size 1000 --parallel --pool_shape 25 --perturb_factor 2.0

Blog post

Check out our related blog post.

Datasets

We used the following datasets for the Science paper:

CAPTCHA datasets

MNIST datasets

MNIST licensing

Yann LeCun (Courant Institute, NYU) and Corinna Cortes (Google Labs, New York) hold the copyright of MNIST dataset, which is a derivative work from original NIST datasets. MNIST dataset is made available under the terms of the Creative Commons Attribution-Share Alike 3.0 license.

Nearby in the ranking
Similar items