Giter Site home page Giter Site logo

cgan-mnist's Introduction

logo

I'm Daipuwei

logo

cgan-mnist's People

Contributors

daipuwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cgan-mnist's Issues

train.py error

Hello, excuse me. When I run train.py, I always get an error in epoch 32. What is the reason?
image

请问老师给的h5文件是可以直接load的吗? 我这边进行了如下报错, 不知道问题在哪里

Traceback (most recent call last):
File "d:\work_paul\11_new_workspace\a_inference\CGAN-mnist-master\ceshi.py", line 11, in
cgan = CGAN(cfg,weight_path)
File "d:\work_paul\11_new_workspace\a_inference\CGAN-mnist-master\CGAN\CGAN.py", line 57, in init
self.cgan.load_weights(weight_path,by_name=True)
File "D:\softwres\py\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "D:\softwres\py\lib\site-packages\keras\saving\hdf5_format.py", line 923, in load_weights_from_hdf5_group_by_name
raise ValueError(
ValueError: Weight count mismatch for layer #3 (named model_1). Layer expects 21 weight(s). Received 9 saved weight(s)

奇怪的错误IndexError

每次epoch到32次都提示这个错误
IndexError Traceback (most recent call last)
in ()
13
14 if name == 'main':
---> 15 run_main()

1 frames
in train(self, train_datagen, epoch, k, batch_size)
213 if ep % self.config.save_epoch_interval == 0:
214 model_cgan = "Epoch{}dcgan_loss{}discriminator_loss{}acc{}.h5".format(ep, np.average(cgan_losses),
--> 215 np.average(d_losses,0)[0],np.average(d_losses,0)[1])
216 self.cgan.save(os.path.join(model_path, model_cgan))
217 save_dir = os.path.join(train_result_path, str("Epoch{}".format(ep)))

IndexError: invalid index to scalar variable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.