Comments (2)
Did you download the dataset?
from csgm.
Dear author , when I run the instruction./quick_scripts/mnist_reconstr.sh
,I was also got the error like this ,how to solve it? Thank you very much!!
(/home/gamkiu/anaconda3/envs/test) gamkiu@ubuntu:~/csgm$ ./quick_scripts/mnist_reconstr.sh
batch_size = 10
checkpoint_iter = 1
dataset = mnist
decay_lr = False
dloss1_weight = 0.0
dloss2_weight = 0.0
gif = False
gif_dir =
gif_iter = 1
image_matrix = 1
image_shape = (28, 28, 1)
inpaint_size = 1
input_path_pattern = ./data/celebAtest/*.jpg
input_type = full-input
lasso_solver = sklearn
learning_rate = 0.01
lmbd = 0.1
max_update_iter = 1000
measurement_type = gaussian
mloss1_weight = 0.0
mloss2_weight = 1.0
model_types = ['lasso', 'vae']
momentum = 0.9
n_input = 784
noise_std = 0.1
not_lazy = True
num_input_images = 10
num_measurements = 100
num_random_restarts = 10
optimizer_type = adam
pretrained_model_dir = ./mnist_vae/models/mnist-vae/
print_stats = True
save_images = False
save_stats = False
sparsity = 1
superres_factor = 2
zprior_weight = 0.1
Extracting ./data/mnist/train-images-idx3-ubyte.gz
Traceback (most recent call last):
File "./src/compressed_sensing.py", line 177, in
main(HPARAMS)
File "./src/compressed_sensing.py", line 19, in main
xs_dict = model_input(hparams)
File "/home/gamkiu/csgm/src/mnist_input.py", line 56, in model_input
mnist = input_data.read_data_sets('./data/mnist', one_hot=True)
File "/home/gamkiu/anaconda3/envs/test/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 213, in read_data_sets
train_images = extract_images(f)
File "/home/gamkiu/anaconda3/envs/test/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 53, in extract_images
magic = _read32(bytestream)
File "/home/gamkiu/anaconda3/envs/test/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 35, in _read32
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
(/home/gamkiu/anaconda3/envs/test) gamkiu@ubuntu:~/csgm$
from csgm.
Related Issues (13)
- Question about the loss function HOT 3
- Not an issue, but a question
- Exact Version Numbers of Dependencies to Execute the Example Code
- Question about "./setup/train_mnist_vae.sh"
- question about "python ./src/main.py"
- Optimizer params need to get reinitialized HOT 1
- how to train dcgan on another dataset HOT 13
- Dead link for datasets and models HOT 4
- Pre-trained model files HOT 1
- utils HOT 1
- question about the lose function in your
- question about the lose function in your paper and code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgm.