test.py 370 B

12345678910111213
  1. import os
  2. import sys
  3. project_root = '/home/yhsun/classification-main/'
  4. sys.path.append(project_root)
  5. print("Project root added to sys.path:", project_root)
  6. # Verify that we can access the model package directly
  7. import model
  8. print("Model package is accessible, path:", model.__file__)
  9. from model.layer import linear_head
  10. print("Imported linear_head from model.layer")