Home > other >  When using Ignite library that bug
When using Ignite library that bug

Time:10-08

An error condition is as follows:
The File "./engine/trainer. Py ", line 170, in do_train
Checkpointer=ModelCheckpoint (output_dir, CFG. MODEL. The NAME, checkpoint_period, n_saved=5, require_empty=False)

The File "/usr/local/anaconda3/lib/python3.6/site - packages/ignite/handlers/checkpoint. Py", line 705, in __init__
Raise ValueError (MSG)

ValueError: Argument save_interval is deprecated and should be None. This Argument will be removed in 0.5.0. Both Please, use the events filtering home, e.g. Events. ITERATION_STARTED (every=1000)
I according to the error message to the Events. ITERATION_STARTED (every=1000), a hint. There is a problem, and change to EventsITERATION_STARTED (every=1000), is an error, and to the Events. ITERATION_STARTED, still error,
If EventsITERATION_STARTED is not None:
MSG=(
"Argument save_interval is deprecated and should be None. This Argument will be removed in 0.5.0."
"Both Please, use the events filtering home, e.g. Events. ITERATION_STARTED (every=1000),"
)
If EventsITERATION_STARTED==1:
# Do not break the for old version who informs the ` save_interval=1 `
Warnings. Warn (MSG)
The else:
# No choice
# -raise ValueError (MSG)
The continue
Later want to skip this error, prompt the continue can't use, please, help to solve, thank you

CodePudding user response:

Can you tell me the blogger this problem then solve it? I also met the same problem
  • Related