We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8071c7 commit 44dd966Copy full SHA for 44dd966
olmocr/train/train.py
@@ -4,6 +4,7 @@
4
5
import argparse
6
import logging
7
+import os
8
9
import numpy as np
10
import torch
@@ -86,6 +87,11 @@ def main():
86
87
logger.error(f"Configuration validation failed: {e}")
88
return
89
90
+ # Set wandb project from config
91
+ if config.project_name:
92
+ os.environ["WANDB_PROJECT"] = config.project_name
93
+ logger.info(f"Setting WANDB_PROJECT to: {config.project_name}")
94
+
95
# Load processor for tokenization
96
logger.info(f"Loading processor: {config.model.name}")
97
processor = AutoProcessor.from_pretrained(
0 commit comments