Giter Site home page Giter Site logo

sg-nm / cgp-cnn Goto Github PK

View Code? Open in Web Editor NEW
75.0 9.0 27.0 14 KB

A Genetic Programming Approach to Designing CNN Architectures, In GECCO 2017 (oral presentation, Best Paper Award)

License: MIT License

Python 100.00%
deep-learning python chainer pytorch evolutionary-algorithm genetic-algorithm

cgp-cnn's Issues

Error when running on Ubuntu 16.04, chainer 3.1.0

I tried to run the code, error is as follow:

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.

module 'chainer.functions' has no attribute 'ReLU

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'

RuntimeError: The size of tensor a (4) must match the size of tensor b (8) at non-singleton dimension 3 multiprocessing.pool.RemoteTraceback:

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]]

Error when running on Ubuntu 16.04

Traceback (most recent call last):
File "/development/cgp-cnn/cnn_train.py", line 118, 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 "
/development/cgp-cnn/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 "~/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.

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.