Skip to content

shape of data error? #46

@guili9300

Description

@guili9300

Below is the alert that i got, anybody know y does this happen? Thank you

Traceback (most recent call last):
File "main.py", line 45, in
main(config)
File "main.py", line 37, in main
trainer.train()
File "D:\GAN study\BEGAN-tensorflow-master\trainer.py", line 161, in train
self.autoencode(x_fixed, self.model_dir, idx=step, x_fake=x_fake)
File "D:\GAN study\BEGAN-tensorflow-master\trainer.py", line 266, in autoencode
x = self.sess.run(self.AE_x, {self.x: img})
File "C:\Users\Josh\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "C:\Users\Josh\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (16, 3, 64, 64) for Tensor 'ToFloat:0', which has shape '(16, 64, 64, 3)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions