Update Hub Path inputs
diff --git a/hubconf.py b/hubconf.py
index 7ef512655ae..93ea84d69dd 100644
--- a/hubconf.py
+++ b/hubconf.py
@@ -115,9 +115,11 @@ def yolov5x6(pretrained=True, channels=3, classes=80, autoshape=True, verbose=Tr
     import cv2
     import numpy as np
     from PIL import Image
+    from pathlib import Path
 
     imgs = ['data/images/zidane.jpg',  # filename
-            'https://github.com/ultralytics/yolov5/releases/download/v1.0/zidane.jpg',  # URI
+            Path('data/images/zidane.jpg'),  # Path
+            'https://ultralytics.com/images/zidane.jpg',  # URI
             cv2.imread('data/images/bus.jpg')[:, :, ::-1],  # OpenCV
             Image.open('data/images/bus.jpg'),  # PIL
             np.zeros((320, 640, 3))]  # numpy
diff --git a/models/common.py b/models/common.py
index 901648b693a..fc085e22b16 100644
--- a/models/common.py
+++ b/models/common.py
@@ -2,7 +2,7 @@
 
 import logging
 from copy import copy
-from pathlib import Path, PosixPath
+from pathlib import Path
 
 import math
 import numpy as np
@@ -248,7 +248,7 @@ def forward(self, imgs, size=640, augment=False, profile=False):
         shape0, shape1, files = [], [], []  # image and inference shapes, filenames
         for i, im in enumerate(imgs):
             f = f'image{i}'  # filename
-            if isinstance(im, (str, PosixPath)):  # filename or uri
+            if isinstance(im, (str, Path)):  # filename or uri
                 im, f = Image.open(requests.get(im, stream=True).raw if str(im).startswith('http') else im), im
                 im = np.asarray(exif_transpose(im))
             elif isinstance(im, Image.Image):  # PIL Image



## 🛠️ PR Summary

<sub>Made with ❤️ by [Ultralytics Actions](https://github.com/ultralytics/actions)<sub>

### 🌟 Summary
Enhanced support for image file path handling and simplified code by using a unified path import.

### 📊 Key Changes
- 🛠 Updated image loading examples in `hubconf.py` to use `Path` from `pathlib`.
- 🌐 Changed a test image URL to point to the updated `ultralytics.com` domain.
- 🧹 Refactored `models/common.py` by removing `PosixPath` to unify path handling under `Path`.

### 🎯 Purpose & Impact
- ✔️ **Usability Improvement**: By using `Path`, developers can now pass image locations as path objects, making the code more consistent and cross-platform friendly.
- 📡 **URL Update**: The change in URL ensures users are accessing the latest resources from an official domain.
- 📁 **Code Maintenance**: Simplifying the imports in `common.py` results in cleaner code, which is easier to read and maintain. The consolidation also prevents potential bugs from inconsistent path handling across different operating system environments.