Closed longmalongma closed 3 years ago
Did you miss the "C" at the front?
but that's probably not the reason... Which line is it stuck at? You can use a tool to check: https://github.com/benfred/py-spy
but that's probably not the reason... Which line is it stuck at? You can use a tool to check: https://github.com/benfred/py-spy
Thanks for your reply. I will try it.
@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of train.py
and see which line does the program stuck at?
@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of
train.py
and see which line does the program stuck at?@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of
train.py
and see which line does the program stuck at?
OK, now I will try it according to your suggestion.
@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of
train.py
and see which line does the program stuck at?@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of
train.py
and see which line does the program stuck at?OK, now I will try it according to your suggestion.
I can't print anything, it stays in this interface.
@longmalongma It seems that this problem has not been fixed. How about you try some simple debugging (like printing 1, 2, 3, 4) at different lines of
train.py
and see which line does the program stuck at?
@hkchengrex Is there a problem with the data set?
If you cannot even finish importing it's not because of the dataset... Can you add a few more print statements to see where does it fail?
If you cannot even finish importing it's not because of the dataset... Can you add a few more print statements to see where does it fail?
Sorry, none of the rows can be printed, I think it's probably a problem with the data set, because the difference between me and others is the download of the data set.
If you cannot even finish importing it's not because of the dataset... Can you add a few more print statements to see where does it fail?
Sorry, none of the rows can be printed, I think it's probably a problem with the data set, because the difference between me and others is the download of the data set.
If you cannot even finish importing it's not because of the dataset... Can you add a few more print statements to see where does it fail?
Sorry, none of the rows can be printed, I think it's probably a problem with the data set, because the difference between me and others is the download of the data set. I found a problem. It got stuck when introducing Torch, but my environment can run STM. Do I need to update the version of Torch?
Maybe you can uninstall and re-install pytorch?
Maybe you can uninstall and re-install pytorch? ok,my current environment is like this: torchaudio 0.8.1 py38 pytorch
Maybe you can uninstall and re-install pytorch?
I uninstalled and reinstalled PyTorch. The improved version still doesn't work, and the runtime is still stuck in the Import Torch line.
What if you open up python, and only import torch?
What if you open up python, and only import torch? I can import torch when I use the command line to enter Python, but I'm stuck in the import torch line when I run codes. Why?
What if you import torch first, before everything else? i.e., move import torch
to the first line.
move
import torch
to the first line
When I moved the Import Torch to the first line, the Import Torch succeeded. Thank you for your help.
What if you import torch first, before everything else? i.e., move
import torch
to the first line.
Why is Import Torch correct on the first line, but incorrect on any other line?Do you know why?I'm being hard to understand.
I have no idea. Maybe you can ask the PyTorch guys: https://github.com/pytorch/pytorch/issues
I have no idea. Maybe you can ask the PyTorch guys: https://github.com/pytorch/pytorch/issues
ok, thanks!
When I ran this line of code on our server, the server did not respond for a long time. Do you know why?
UDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=4 python -m torch.distributed.launch --master_port 9842 --nproc_per_node=1 train.py --id retrain_s0 --stage 0 --batch_size 4