train_configs.py 238 B

123456789101112
  1. import torch
  2. data_dir = r"Data/samples"
  3. device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
  4. learning_rate = 1e-5 # 0.0003 # 0.0003 学习率 2e-5太小了 1e-4
  5. num_epochs = 1
  6. patience = 10
  7. model_dimension = 512