Comments (3)
Hi, I am facing the same problem. Please tell me how did you solve this issue. Thanks
from catgan.
change
h1=F.leaky_relu(self.bn0(self.l0(z),test),slope=0.1)
to
h1=F.leaky_relu(self.bn0(self.l0(z)),slope=0.1)
will work in chainer 3.2.0
@mohebbihr @mmosquera10
from catgan.
Even I have the same error..
Even after making above changes, I get this error..
load MNIST dataset epoch 1 Traceback (most recent call last): File "catgan_train.py", line 164, in <module> fake_x=gen(z) File "catgan_train.py", line 74, in __call__ h2=F.leaky_relu(self.bn1(self.l1(h1),test),slope=0.1) TypeError: __call__() takes 2 positional arguments but 3 were given
I removed test from all these 3 line..
h1=F.leaky_relu(self.bn0(self.l0(z)),slope=0.1)
h2=F.leaky_relu(self.bn1(self.l1(h1)),slope=0.1)
h3=F.leaky_relu(self.bn2(self.l2(h2)))
h4=F.sigmoid(self.l3(h3))
It still gives me this error..
load MNIST dataset
epoch 1
Traceback (most recent call last):
File "catgan_train.py", line 165, in
fake_y=dis(fake_x)
File "catgan_train.py", line 117, in call
h1=F.leaky_relu(self.bn0(self.l0(x)+F.gaussian(mu_array2,log_std_array2),test),slope=0.1)
TypeError: call() takes 2 positional arguments but 3 were given
So I removed test in other calls too... like this..
h1=F.leaky_relu(self.bn0(self.l0(x)+F.gaussian(mu_array2,log_std_array2)),slope=0.1)
h2=F.leaky_relu(self.bn1(self.l1(h1)+F.gaussian(mu_array3,log_std_array3)),slope=0.1)
h3=F.leaky_relu(self.bn2(self.l2(h2)+F.gaussian(mu_array4,log_std_array4)),slope=0.1)
h4=F.leaky_relu(self.bn3(self.l3(h3)+F.gaussian(mu_array5,log_std_array5)),slope=0.1)
h5=F.leaky_relu(self.bn4(self.l4(h4)+F.gaussian(mu_array6,log_std_array6)),slope=0.1)
h6=F.softmax(self.l5(h5))
It gives me this error..
load MNIST dataset
epoch 1
Traceback (most recent call last):
File "catgan_train.py", line 170, in
o_dis.zero_grads()
AttributeError: 'Adam' object has no attribute 'zero_grads'
from catgan.
Related Issues (5)
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 catgan.