kijai / ComfyUI-MimicMotionWrapper

Apache License 2.0
337 stars 27 forks source link

AttributeError #79

Open faiz-dipixels opened 1 month ago

faiz-dipixels commented 1 month ago

I have downloaded the files and put them in correcr directory but still I am getting the attribute error and its reading model as str Traceback (most recent call last): File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi result = await app( # type: ignore[func-returns-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\fastapi\applications.py", line 1054, in call await super().call(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\applications.py", line 113, in call await self.middleware_stack(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\middleware\errors.py", line 187, in call raise exc File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\middleware\errors.py", line 165, in call await self.app(scope, receive, _send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in call await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\routing.py", line 715, in call await self.middleware_stack(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\routing.py", line 735, in app await route.handle(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\routing.py", line 288, in handle await self.app(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\routing.py", line 76, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette_exception_handler.py", line 62, in wrapped_app raise exc File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\starlette\routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\fastapi\routing.py", line 301, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\dipixels\anaconda3\envs\mimicmotion\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\main.py", line 26, in process_image_video pose_pixels, image_pixels = preprocess(temp_video_path, temp_image_path, resolution, sample_stride) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\inference.py", line 54, in preprocess image_pose = get_image_pose(image_pixels) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\mimicmotion\dwpose\preprocess.py", line 68, in get_image_pose ref_pose = dwprocessor(ref_image) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\mimicmotion\dwpose\dwpose_detector.py", line 29, in call candidate, score = self.pose_estimation(oriImg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\mimicmotion\dwpose\wholebody.py", line 37, in call det_result = inference_jit_yolox(self.det, oriImg, detect_classes=[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Learn ComfyUI\ComfyUI-MimicMotionWrapper-main\mimicmotion\dwpose\jit_det.py", line 102, in inference_detector device, dtype = next(model.parameters()).device, next(model.parameters()).dtype ^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'parameters'