YosukeSugiura / SEGAN

SEGAN-NNabla
4 stars 3 forks source link

error #1

Open lcxsnow opened 3 years ago

lcxsnow commented 3 years ago

I have some problems with training. I follow the steps but got the error.

runfile('C:/Users/snow/Desktop/SEGAN-master/segan.py', wdir='C:/Users/snow/Desktop/SEGAN-master') 2020-12-23 20:58:27,899 [nnabla][INFO]: Initializing CPU extension... 2020-12-23 20:58:29,379 [nnabla][INFO]: Initializing CUDA extension... 2020-12-23 20:58:29,382 [nnabla][INFO]: Initializing cuDNN extension... Load Clean Pkl... Load Noisy Pkl... Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsObject.py", line 40, in itemChange ret = sip.cast(ret, QtGui.QGraphicsItem)

TypeError: cast() argument 1 must be sip.simplewrapper, not PlotItem

view= None dt= None px= 0 py= 0 view= None dt= None px= 0 py= 0 v= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> obj= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 438, in resizeEvent self.updateAutoRange()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 890, in updateAutoRange childRange = self.childrenBounds(frac=fractionVisible)

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 1355, in childrenBounds px, py = [v.length() if v is not None else 0 for v in self.childGroup.pixelVectors()]

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 191, in pixelVectors dt = self.deviceTransform()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 109, in deviceTransform view = self.getViewWidget()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 66, in getViewWidget if v is not None and not isQObjectAlive(v):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\Qt.py", line 329, in isQObjectAlive return not sip.isdeleted(obj)

TypeError: isdeleted() argument 1 must be sip.simplewrapper, not GraphicsWindow

Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsObject.py", line 40, in itemChange ret = sip.cast(ret, QtGui.QGraphicsItem)

TypeError: cast() argument 1 must be sip.simplewrapper, not PlotDataItem

Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsObject.py", line 40, in itemChange ret = sip.cast(ret, QtGui.QGraphicsItem)

TypeError: cast() argument 1 must be sip.simplewrapper, not PlotDataItem

v= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> obj= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsObject.py", line 26, in itemChange self.parentChanged()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 466, in parentChanged self._updateView()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 483, in _updateView view = self.getViewBox()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 89, in getViewBox vb = self.getViewWidget()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 66, in getViewWidget if v is not None and not isQObjectAlive(v):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\Qt.py", line 329, in isQObjectAlive return not sip.isdeleted(obj)

TypeError: isdeleted() argument 1 must be sip.simplewrapper, not GraphicsWindow

Traceback (most recent call last):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsObject.py", line 40, in itemChange ret = sip.cast(ret, QtGui.QGraphicsItem)

TypeError: cast() argument 1 must be sip.simplewrapper, not ChildGroup

v= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> obj= <pyqtgraph.graphicsWindows.GraphicsWindow object at 0x000002AD03BDBE58> Traceback (most recent call last):

File "C:\Users\snow\Desktop\SEGAN-master\segan.py", line 430, in train(args)

File "C:\Users\snow\Desktop\SEGAN-master\segan.py", line 288, in train fig = figout()

File "C:\Users\snow\Desktop\SEGAN-master\display.py", line 109, in init self.c11 = self.p1.plot(pen=(255, 0, 0), name="Input")

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\PlotItem\PlotItem.py", line 653, in plot self.addItem(item, params=params)

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\PlotItem\PlotItem.py", line 530, in addItem self.vb.addItem(item, *args, **vbargs)

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 409, in addItem self.updateAutoRange()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 890, in updateAutoRange childRange = self.childrenBounds(frac=fractionVisible)

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\ViewBox\ViewBox.py", line 1355, in childrenBounds px, py = [v.length() if v is not None else 0 for v in self.childGroup.pixelVectors()]

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 191, in pixelVectors dt = self.deviceTransform()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 109, in deviceTransform view = self.getViewWidget()

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\graphicsItems\GraphicsItem.py", line 66, in getViewWidget if v is not None and not isQObjectAlive(v):

File "D:\anaconda3\envs\SEGAN\lib\site-packages\pyqtgraph\Qt.py", line 329, in isQObjectAlive return not sip.isdeleted(obj)

TypeError: isdeleted() argument 1 must be sip.simplewrapper, not GraphicsWindow

vk-mbeddedai commented 3 years ago

Use pyqtgraph version 0.10.0