Coder Social home page Coder Social logo

chainerwing's Issues

When execute ChainerWing.py, occured AttributeError

Thank you for great GUI tool for Deep learning.
But I have some problem to execute ChainerWing.

C:\Users\rose\ChainerWing\bin>python ChainerWing.py Traceback (most recent call last): File "ChainerWing.py", line 4, in <module> chainer_wing.gui_main.main.run() File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\main.py", line 26, in run startUI(app, painter) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\main.py", line 36, in startUI win = MainWindow(painter=painter) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\painter.py", line 746, in __init__ self.setupNodeLib() File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\painter.py", line 1111, in setupNodeLib self.NodeListView.setup(self.FilterEdit, self.drawer.graph) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\node_lib.py", line 105, in setup self.filter.register_list_view(self) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\node_lib.py", line 71, in register_list_view self.update_node_list(text) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\node_lib.py", line 60, in update_node_list item.setToolTip(NODECLASSES[node].doc()) File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\node.py", line 331, in doc return cls.register_chainer_impl().__doc__ File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\CustomNodes\LinkNodes.py", line 21, in register_chainer_impl return chainer.links.linear AttributeError: module 'chainer.links' has no attribute 'linear'

I cannot find what is the faulty line in python files..

Would you notify how can i solve it?

FileNotFoundError in my desktop

Steps to reproduce:

  1. I follow the ChainerWing example.
  2. Load the "mnist.json"
  3. Click the Run
  4. Stack trace occurred as bellow.

Observed Behavior:

`Traceback (most recent call last):

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\painter.py", line 1056, in compile_and_exe
    if self.compile_runner():

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\painter.py", line 1053, in compile_runner
    return self.drawer.graph.compile()

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\graph.py", line 267, in compile
    result = compiler.Compiler()(self.nodes)

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\compiler.py", line 22, in __call__
    net_file = open(TrainParamServer().get_net_name(), 'w')

FileNotFoundError: [Errno 2] No such file or directory: '/home/ryo/workspace/github/CW_gui/examples/mnist/MyNet.py'`

Solution:
I modify some specific(absolute) path of your computer in two files.
First file

: ChainerWing\examples\mnist\mynet.py
Line 70, 74, 79, 87, 93

: ChainerWing\examples\mnist\mnist.json
Line 236, 237, 243, 245

I would like to reflect the user's computer path in this line.
Thank you.

Feature Request for NO CUDA users

I don't use CUDA and cupy package.
ChainerWing also notice that cupy is optional.

However, to execute ChainerWing, It should be called the CUDA and cupy as bellow.

`Traceback (most recent call last):
  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\painter.py", line 1048, in exe_runner
    self.drawer.graph.run()

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\gui_main\graph.py", line 288, in run
    self.runner.run()

  File "C:\Python\Python35\lib\site-packages\chainer_wing-0.0.0-py3.5.egg\chainer_wing\runner.py", line 23, in run
    cw_postprocess)

  File "C:/Users/rose/ChainerWing/examples/mnist//MyNet.py", line 61, in training_main
    device=0)
  File "C:\Python\Python35\lib\site-packages\chainer\training\updater.py", line 131, in __init__
    optimizer.target.to_gpu(device)

  File "C:\Python\Python35\lib\site-packages\chainer\link.py", line 726, in to_gpu
    with cuda._get_device(device):

  File "C:\Python\Python35\lib\site-packages\chainer\cuda.py", line 217, in _get_device
    check_cuda_available()

  File "C:\Python\Python35\lib\site-packages\chainer\cuda.py", line 79, in check_cuda_available
    raise RuntimeError(msg)

RuntimeError: CUDA environment is not correctly set up
(see https://github.com/pfnet/chainer#installation).No module named 'cupy'`

It is just optional feature request.
Would you add some function to turn on or turn off of GPU option?

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.