Closed NeuroDonu closed 2 weeks ago
The PR fixes path resolution issues for the GfpGAN and inswapper models by replacing relative path resolution with absolute path construction. The implementation uses os.path functions to reliably construct paths to the models directory, eliminating platform-specific path handling and potential path resolution errors.
classDiagram
class FaceEnhancer {
+THREAD_LOCK
+NAME
+abs_dir
+models_dir
+pre_check() bool
+get_face_enhancer() Any
}
class FaceSwapper {
+THREAD_LOCK
+NAME
+abs_dir
+models_dir
+pre_check() bool
+get_face_swapper() Any
}
note for FaceEnhancer "Updated path resolution for model_path using os.path.join"
note for FaceSwapper "Updated path resolution for model_path using os.path.join"
Change | Details | Files |
---|---|---|
Implemented absolute path resolution for model files |
|
modules/processors/frame/face_enhancer.py modules/processors/frame/face_swapper.py |
Removed dependency on resolve_relative_path utility |
|
modules/processors/frame/face_swapper.py |
Hi. not too long ago i was getting the error that is described in this issue: https://github.com/hacksider/Deep-Live-Cam/issues/770 I added a fix for this bug (it was a misconstructed path)
Summary by Sourcery
Bug Fixes: