please go through the below log and help me with a solution. Requested to load…
- User
please go through the below log and help me with a solution.
Requested to load AutoencodingEngine Loading 1 new model loaded completely 0.0 159.87335777282715 True !!! Exception during processing !!! [Errno 13] Permission denied: 'C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\models\mediapipe\selfie_multiclass_256x256.tflite' Traceback (most recent call last): File "C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle\py\person_mask_ultra_v2.py", line 74, in person_mask_ultra_v2 with open(a_person_mask_generator_model_path, "rb") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\models\mediapipe\selfie_multiclass_256x256.tflite'
- Assistant
The log you've provided indicates a
PermissionError, specifically an[Errno 13], which means that the process attempted to access a file without sufficient permissions. This error is occurring in the script located atC:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle\py\person_mask_ultra_v2.py, on the line where it tries to open the fileC:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\models\mediapipe\selfie_multiclass_256x256.tflite.Here are some steps you can take to try to resolve this issue:
-
Check File Permissions:
- Navigate to
C:\Users\CapsA01\ComfyUI_windows_portable\ComfyUI\models\mediapipe\in Windows Explorer. - Right-click on
selfie_multiclass_256x256.tfliteand select "Properties." - Go to the "Security" tab and verify that your user account has read permissions. If not, click "Edit" and adjust the permissions accordingly.
- Navigate to
-
Run as Administrator:
- Sometimes, running a script or program with elevated permissions can resolve permission issues.
- Right-click on the program or the script that launches your application and select "Run as administrator."
-
Check Antivirus/Firewall:
- Occasionally, security software may block access to certain files. Make sure your antivirus software or Windows Defender is not blocking access to this file. You may need to add an exception for the file or the entire
ComfyUI_windows_portabledirectory.
- Occasionally, security software may block access to certain files. Make sure your antivirus software or Windows Defender is not blocking access to this file. You may need to add an exception for the file or the entire
-
Check File Lock:
- Ensure that no other program is using or locking the file. You can use tools like
Process Explorerto check if another process has a handle open for this file.
- Ensure that no other program is using or locking the file. You can use tools like
-
File Corruption:
- Redownload or replace the
.tflitefile if it may be corrupted and ensure that the download or transfer process completes without issues.
- Redownload or replace the
-
Check Path Length:
- Windows can sometimes have issues with very long file paths. Try moving the
ComfyUI_windows_portablefolder to a shorter path, like directly underC:\.
- Windows can sometimes have issues with very long file paths. Try moving the
-
Check Python Environment Permissions:
- Ensure that the Python environment has the appropriate permissions to access and read from the directories and files it needs.
Once you've tried these steps, try running the program again to see if the issue has been resolved.
-