Skip to content

Commit

Permalink
Add python-dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Santa Cruz Lopez committed Oct 24, 2023
1 parent cd94a8f commit f335b0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepr/model/diffusion_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import torch
import torch.nn.functional as F
from accelerate import Accelerator
from dotenv import find_dotenv, load_dotenv
from huggingface_hub import Repository
from tqdm import tqdm
from transformers import get_cosine_schedule_with_warmup
Expand All @@ -18,6 +19,8 @@

logger = get_logger(__name__)

load_dotenv(find_dotenv())


def train_diffusion(
config: TrainingConfig,
Expand Down

0 comments on commit f335b0c

Please sign in to comment.