-
Notifications
You must be signed in to change notification settings - Fork 10.5k
MAC M1 and M2 issue for processor not found #1133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Reviewer's GuideThis pull request refactors frame processor loading to rely solely on the provided processor list, removing UI state dependency. It also simplifies macOS camera detection by removing checks for secondary indices and sets 'face_swapper' as the default processor. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @TamimDostyar - I've reviewed your changes - here's some feedback:
- The logic for loading frame processors based on UI state seems to have been removed; ensure the
frame_processors
list accurately reflects the intended configuration before this function is called. - Initializing
frame_processors
withface_swapper
might activate it by default unexpectedly; consider leaving it empty. - Removing the macOS-specific camera detection logic might affect users with multiple cameras on Mac; verify this change doesn't cause regressions.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
except: | ||
pass | ||
except: | ||
pass | ||
|
||
def multi_process_frame(source_path: str, temp_frame_paths: List[str], process_frames: Callable[[str, List[str], Any], None], progress: Any = None) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (bug_risk): Avoid bare except usage.
Specify the exception types or log the error to avoid hiding issues and aid debugging.
Suggested implementation:
except Exception as e:
import logging # Ensure logging is imported at the top if not already
logging.exception(f"Error while loading frame processor module '{frame_processor}': {e}")
Make sure to remove any duplicate import of logging if it already exists at the top of the file.
Summary by Sourcery
Fix camera detection and frame processor initialization issues on Mac M1/M2 systems
Bug Fixes:
Enhancements:
Chores: