sg-nm / cgp-cnn Goto Github PK
View Code? Open in Web Editor NEWA Genetic Programming Approach to Designing CNN Architectures, In GECCO 2017 (oral presentation, Best Paper Award)
License: MIT License
A Genetic Programming Approach to Designing CNN Architectures, In GECCO 2017 (oral presentation, Best Paper Award)
License: MIT License
in_data[small_ch_id] = torch.cat([in_data[small_ch_id], tmp * 0], 1)
RuntimeError: Sizes of tensors must match except in dimension 2. Got 4 and 8
I would like to ask what is the problem? This problem always occurs when the algorithm runs halfway
Traceback (most recent call last):
File "/home/data/luopengting/workplace/python/cgp-cnn-master/cnn_train.py", line 118, in call
optimizer.update(model, x, t)
File "/home/b3434/anaconda3/envs/chainer/lib/python3.5/site-packages/chainer/optimizer.py", line 534, in update
loss = lossfun(*args, **kwds)
File "/home/data/luopengting/workplace/python/cgp-cnn-master/cnn_model.py", line 160, in call
outputs[nodeID], tmp_num = getattr(self, name)(outputs[self.cgp[nodeID][1]], outputs[self.cgp[nodeID][1]], self.train)
File "/home/data/luopengting/workplace/python/cgp-cnn-master/cnn_model.py", line 58, in call
x = getattr(self, name)(x, not train)
TypeError: call() takes 2 positional arguments but 3 were given
gpu_id: 0 , eval: 0.0
can u help me, plz ? thx a lot.
elif name == 'sum':
links += [('_'+name+'_'+str(i), F.concat())]
There are a couple of issues that I am facing while running the main file
module 'chainer.functions' has no attribute 'ReLU
module 'chainer.functions' has no attribute 'Concat'
relu() missing 1 required positional argument: 'x'
gpu_id: 0 , [['input', 0, 0], ['S_ResBlock_64_1', 0, 0], ['S_ConvBlock_128_5', 0, 0], ['S_ConvBlock_64_3', 0, 0], ['S_ResBlock_64_5', 2, 3], ['S_ConvBlock_128_3', 1, 1], ['S_ResBlock_32_1', 3, 1], ['Max_Pool', 4, 6], ['Avg_Pool', 7, 6], ['Sum', 5, 6], ['S_ResBlock_32_1', 8, 7], ['Sum', 9, 10], ['Max_Pool', 11, 10], ['S_ConvBlock_64_1', 12, 10], ['S_ConvBlock_128_3', 13, 13], ['S_ConvBlock_32_3', 14, 14], ['full', 15, 15]]
Traceback (most recent call last):
File "/development/cgp-cnn/cnn_train.py", line 118, in call/development/cgp-cnn/cnn_model.py", line 160, in call
optimizer.update(model, x, t)
File "/usr/local/lib/python2.7/dist-packages/chainer/optimizer.py", line 528, in update
loss = lossfun(*args, **kwds)
File "
outputs[nodeID], tmp_num = getattr(self, name)(outputs[self.cgp[nodeID][1]], outputs[self.cgp[nodeID][1]], self.train)
File "~/development/cgp-cnn/cnn_model.py", line 58, in call
x = getattr(self, name)(x, not train)
TypeError: call() takes exactly 2 arguments (3 given)
I get the previous error when running the example given in the README.md I am happy to provide any other information required.
The script continues running but outputs this error every time and restarts.
Hello author, first of all, thank you very much for your work, how do I change the code if I want to recognize the string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.