yb1n's picture
Upload folder using huggingface_hub
29d1fb6 verified
Raw
History Blame Contribute Delete
1.03 kB
from __future__ import annotations
import platform
import sys
from pathlib import Path
PROJECT_ROOT = Path(__file__).resolve().parents[1]
SRC_DIR = PROJECT_ROOT / "src"
sys.path.insert(0, str(SRC_DIR))
from hf_processor_practice.utils import print_title
def main() -> None:
print_title("00. Environment Check")
print("Python:", sys.version)
print("Platform:", platform.platform())
try:
import torch
print("torch:", torch.__version__)
print("CUDA available:", torch.cuda.is_available())
except Exception as exc:
print("torch import failed:", repr(exc))
try:
import transformers
print("transformers:", transformers.__version__)
except Exception as exc:
print("transformers import failed:", repr(exc))
try:
import PIL
print("Pillow:", PIL.__version__)
except Exception as exc:
print("Pillow import failed:", repr(exc))
print("\nํ™˜๊ฒฝ ํ™•์ธ์ด ๋๋‚ฌ์Šต๋‹ˆ๋‹ค.")
if __name__ == "__main__":
main()