pytorch-pcnn
pytorch-pcnn copied to clipboard
Something Wrong
Hi, file
is only in Python 2.7X, and your python version is 3.6. You can try replace file
into open
Hi,
file
is only in Python 2.7X, and your python version is 3.6. You can try replacefile
intoopen
How about this one?
The training phase should be in this way in the terminal:
python main_sem.py train
If you run code in IDE (e.g., Pycharm) , You can modify the __main__
function with:
if __name__ == "__main__":
train()
The training phase should be in this way in the terminal:
python main_sem.py train
If you run code in IDE (e.g., Pycharm) , You can modify the
__main__
function with:if __name__ == "__main__": train()
According to what you say, get the same result.
The normal output of main_sem should be:
Maybe the environment difference?
def train(**kwargs):
Where is the value of the parameter?
The normal output of main_sem should be:
Maybe the environment difference?
Maybe you should upgrade your program with python3
The normal output of main_sem should be:
Maybe the environment difference?
Maybe you should upgrade your program with python3
I don't know if you write program like these *** if name == "main": train()***,how to pass in the value at def train(**kwargs) function ?
OK, I will update my code with Python3.X.
You can change config.py
Line 66:
.iteritems() -> .items()
```
Maybe there will be other codes different from python2.x and 3.x
OK, I will update my code with Python3.X. You can change
config.py
Line 66:.iteritems() -> .items()
Maybe there will be other codes different from python2.x and 3.x
Yes, I had found at least four difference between python2 and python3. Looking forward to your code with python3. Thanks! !
Yes, I'm trying to update with python3. And I think it would be better with Pytorch 0.4 or later in the revision.
The normal output of main_sem should be:
Maybe the environment difference?
Maybe you should upgrade your program with python3
I don't know if you write program like these *** if name == "main": train()***,how to pass in the value at def train(**kwargs) function ?
I can not run the part program of picture. Do you know what's reason causes these? my pytorch version is 0.4
Yeah. My code is in Pytorch0.3. I'm updating code into Python3.x and Pytorch 0.4
@charlesfufu The code has updated. the master branch is under Python 3.5x and Pytorch 0.4+.
@charlesfufu The code has updated. the master branch is under Python 3.5x and Pytorch 0.4+.
Wonderful !!
@charlesfufu The code has updated. the master branch is under Python 3.5x and Pytorch 0.4+.
Wonderful !!
Do you know why?
try changing the "use_gpu" in config.py to False.
try changing the "use_gpu" in config.py to False.
still wrong
Is the same wrong message?
Is the same wrong message?
yeah!!Maybe is not GPU problem.
try changing the codes here to this
try changing the codes here to this
No,that's wrong.
this?
also change the code here, and add long(). it may work
No, not right Can I ask you about it, have you run it since the program was modified?
@Wangpeiyi9979 what about win10 ?
@Wangpeiyi9979 what about win10 ? it should work. changing the code here, add long()..
and here
@ShomyLiu
@charlesfufu I have reviewed code carefully and cannot reproduce your problems either in GPU or CPU.
Please check your environments.
My environments are listed here:
- OS: Ubuntu 16.04
- Python: 3.5
- Pytorch: 0.4.1
- GPU: NVIDIA GTX 1080Ti with 387.34 drivers.