Files
havvk-ComfyUI_AIIA/inspect_resemble.py
T
Hawk Lee e21a5c9eba fix: restore file permissions to 755 (reverts eff537d mode change)
The eff537d commit changed all files from 755 to 644.
Restores original executable permissions.
2026-02-16 12:15:32 +08:00

24 lines
662 B
Python
Executable File

import inspect
import sys
import torch
try:
from resemble_enhance.enhancer.enhancer import Enhancer
print("=== Source of Enhancer.forward ===")
print(inspect.getsource(Enhancer.forward))
print("\n=== Source of Enhancer (init to check modules) ===")
# Print first 50 lines of Init to see components
lines = inspect.getsource(Enhancer.__init__).split('\n')
for line in lines[:50]:
print(line)
except ImportError:
print("Could not import Enhancer. Trying to locate file...")
import resemble_enhance
print(f"Resemble Enhance path: {resemble_enhance.__file__}")
except Exception as e:
print(f"Error: {e}")