About gan errors using the chainer

Asked 1 years ago, Updated 1 years ago, 124 views

I would like to run the following github program.
https://github.com/musyoku/improved-gan/
I don't even understand the contents of the error.I am aware of my lack of experience.
I was told that there are not enough arguments, but I don't even know where to call the function.
Could someone please tell me?

$python model.py
 Traceback (most recent call last):
  File "model.py", line 118, in<module>
    generator.build()
  File "/sequential/sequential.py", line83, inbuild
    self.from_json(json)
  File "/sequential/sequential.py", line 109, in from_json
    self.from_dict(dict_array)
  File "/sequential/sequential.py", line 116, in from_dict
    link=self.layer_to_chainer_link(layer)
  File "/sequential/sequential.py", line 76, in layer_to_chainer_link
    return layer.to_link()
  File "/sequential/layers.py", line 157, into_link
   return chain.links.Linear(**args)
TypeError: __init__()got an unexpected keyword argument 'bias'

python ubuntu chainer

2022-09-30 21:37

1 Answers

The cause of the error is here, and bias to chain.links.Linear.

The maintenance of https://github.com/musyoku/improved-gan/ itself stopped nearly two years ago, so it was working at the time, but the latest version of the chain won't work.

There are two possible modifications:


2022-09-30 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.