carpedm20 / carpedm20/DCGAN-tensorflow
While freezing model : IndexError: list index out of range
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
I've successfully saved checkpoints in directory `./ckpts/checkpoint/ `and when I'm trying to freeze the model it is creating an empty **layer.js** file but unable to create **.pb** file.
The error I' getting upon executing the instruction: `python main.py --dataset faces --input_height=64` is attached below, seems like some code error in `to_json` function.
What should I do?
```
...
[*] Reading checkpoints... ./ckpts/checkpoint
-> ./ckpts/checkpoint
[*] Success to read model.b16-100800
Traceback (most recent call last):
File "main.py", line 149, in
tf.app.run()
File "C:\Users\lenovo\tensorflow_gpu-v1.12\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "main.py", line 132, in main
[dcgan.h4_w, dcgan.h4_b, None])
File "I:\code_tests\zz_DCGAN_tf\carpedm\utils.py", line 113, in to_json
layer_idx = w.name.split('/')[0].split('h')[1]
IndexError: list index out of range
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.