Closed zhybest closed 1 year ago
Could you please give more details about how you run the run.py
?
It is not recommended to run the run.py
using python run.py
directly. Instead, you could refer to bash script in scripts
folder.
when I use the bash scripts,terminal shows
Args in experiment:
Namespace(alpha=0.2, batch_size=32, c_out=321, checkpoints='./checkpoints/', data='custom', data_path='electricity.csv', dec_in=321, des='Exp', devices='0,1,2,3', do_predict=False, dropou
t=0.05, dynamic_dim=64, embed='timeF', enc_in=321, features='M', freq='h', gpu=0, hidden_dim=512, hidden_layers=2, is_training=1, itr=1, label_len=48, learning_rate=0.001, loss='mse', lra
dj='type1', model='Koopa', model_id='ECL_384_192', multistep=False, num_blocks=1, num_workers=10, patience=3, pred_len=192, root_path='./dataset/electricity/', seed=2023, seg_len=192, seq
_len=384, target='OT', train_epochs=10, use_amp=False, use_gpu=False, use_multi_gpu=False)
Use CPU
train 17837
Traceback (most recent call last):
File "
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
just like I used python run.py to run the run.py directle It shows same problem.
I already solved this problem.Because my ps uses windows system, so I need to change the parameter num_workers=0.
RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.
when I run the run.py, Program encountered operational issues,so how to resolve it?