在 utils/wandb_logging/wandb_utils.py
try:
import wandb
from wandb import init, finish
except ImportError:
wandb = None
后面添加
wandb = None
改为
try:
import wandb
from wandb import init, finish
except ImportError:
wandb = None
wandb = None