Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Revert default train size to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
StannisZhou committed Dec 1, 2021
1 parent 3859d21 commit a1162cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/rcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Use train_size = 100 if you have a gpu with atleast 8Gbs memory.
# Recommend that jax is installed with cuda enabled for this option.
train_size = 100
train_size = 20
test_size = 20


Expand Down Expand Up @@ -98,7 +98,9 @@ def fetch_mnist_dataset(test_size: int, seed: int = 5):
# # 2. Load the model

# %%
data = np.load("example_data/rcn_100.npz", allow_pickle=True, encoding="latin1")
data = np.load(
f"example_data/rcn_{train_size}.npz", allow_pickle=True, encoding="latin1"
)
frcs, edges, suppression_masks, filters = (
data["frcs"][:train_size],
data["edges"][:train_size],
Expand Down

0 comments on commit a1162cf

Please sign in to comment.