fix emojies
This commit is contained in:
@@ -20,7 +20,7 @@ def test_checkpoint_reading():
|
||||
print(f" Exists: {os.path.exists(checkpoint_dir)}")
|
||||
|
||||
if not os.path.exists(checkpoint_dir):
|
||||
print(f" ❌ Directory not found")
|
||||
print(f" Directory not found")
|
||||
continue
|
||||
|
||||
# Find checkpoint files
|
||||
@@ -28,7 +28,7 @@ def test_checkpoint_reading():
|
||||
print(f" Checkpoints found: {len(checkpoint_files)}")
|
||||
|
||||
if not checkpoint_files:
|
||||
print(f" ❌ No checkpoint files")
|
||||
print(f" No checkpoint files")
|
||||
continue
|
||||
|
||||
# Try to load best checkpoint
|
||||
@@ -55,13 +55,13 @@ def test_checkpoint_reading():
|
||||
'accuracy': accuracy
|
||||
}
|
||||
except Exception as e:
|
||||
print(f" ❌ Error: {e}")
|
||||
print(f" Error: {e}")
|
||||
|
||||
if best_checkpoint:
|
||||
print(f" ✅ Best: {best_checkpoint['filename']}")
|
||||
print(f" Best: {best_checkpoint['filename']}")
|
||||
print(f" Epoch: {best_checkpoint['epoch']}, Loss: {best_checkpoint['loss']:.6f}, Accuracy: {best_checkpoint['accuracy']:.2%}")
|
||||
else:
|
||||
print(f" ❌ No valid checkpoint found")
|
||||
print(f" No valid checkpoint found")
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_checkpoint_reading()
|
||||
|
||||
Reference in New Issue
Block a user