added the model

This commit is contained in:
samarthjain2023
2025-09-27 12:14:26 -04:00
parent 4c84ab1f67
commit 0df2b0019b
28 changed files with 1633 additions and 1 deletions

32
roadcast/check_env.py Normal file
View File

@@ -0,0 +1,32 @@
import sys
import importlib
def safe_import(name):
try:
return importlib.import_module(name)
except Exception as e:
return e
print('Python:', sys.version.replace('\n',' '))
torch = safe_import('torch')
if isinstance(torch, Exception):
print('torch import error:', torch)
else:
print('torch:', torch.__version__)
print('CUDA available:', torch.cuda.is_available())
if torch.cuda.is_available():
print('CUDA device count:', torch.cuda.device_count())
print('Current device name:', torch.cuda.get_device_name(0))
pandas = safe_import('pandas')
if isinstance(pandas, Exception):
print('pandas import error:', pandas)
else:
print('pandas:', pandas.__version__)
try:
import sklearn
print('sklearn:', sklearn.__version__)
except Exception:
pass