lks-ai / anynode

A Node for ComfyUI that does what you ask it to do
MIT License
500 stars 32 forks source link

Error occurred when executing AnyNodeAnthropic: Error 1 = OpenCV, Error 2 = 'NoneType' object is not subscriptable" #41

Open piovis2023 opened 4 months ago

piovis2023 commented 4 months ago

Context: Windows 11 OS Python 3.11 Conda environment

Anthropic and Gemini Anynodes work when making simple text based queries. Here I tried another example from this repo.

Workflow: (copying the example from the repo)

image

Errors:

  1. If I include the Preview image node in the workflow "Error occurred when executing PreviewImage:

'NoneType' object is not subscriptable"

  1. If i EXCLUDE the Preview image node "Error occurred when executing AnyNodeAnthropic:

OpenCV(4.8.0) d:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper,struct cv::impl::A0xa7e5ea26::Set<1,-1,-1>,struct cv::impl::A0xa7e5ea26::Set<0,2,5>,3>::CvtHelper(const class cv::_InputArray &,const class cv::_OutputArray &,int)'

Invalid number of channels in input image: 'VScn::contains(scn)' where 'scn' is 1"

Any help would is appreciated.