Skip to content

Instantly share code, notes, and snippets.

@alicat22
Created November 20, 2023 16:15
Show Gist options
  • Save alicat22/55029b196bc0a5e4ddcf676cf5b84d33 to your computer and use it in GitHub Desktop.
Save alicat22/55029b196bc0a5e4ddcf676cf5b84d33 to your computer and use it in GitHub Desktop.
[BUG] AttributeError: 'BaseModel' object has no attribute 'num_timesteps'
(comfy) PS D:\ComfyUI> python main.py --preview-method auto --auto-launch
** ComfyUI start up time: 2023-11-20 09:01:50.797034
Prestartup times for custom nodes:
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Manager
Total VRAM 24576 MB, total RAM 32684 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
[Allor]: No new updates.
[Allor]: 0 standard nodes was overridden.
[Allor]: 12 modules enabled.
[Allor]: 95 nodes was loaded.
Adding D:\ComfyUI\custom_nodes to sys.path
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!
Efficiency Nodes: Attempting to add 'AnimatedDiff Script' Node (ComfyUI-AnimateDiff-Evolved add-on)...Success!
Loaded efficiency nodes from D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui
Loaded ControlNetPreprocessors nodes from D:\ComfyUI\custom_nodes\comfyui_controlnet_aux
Could not find AnimateDiff nodes
Loaded IPAdapter nodes from D:\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
Loaded VideoHelperSuite from D:\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
Bmad-DirtyUndoRedo Loaded.
### Loading: ComfyUI-Impact-Pack (V4.31)
### Loading: ComfyUI-Impact-Pack (Subpack: V0.3)
### Loading: ComfyUI-Inspire-Pack (V0.46.1)
### Loading: ComfyUI-Manager (V1.1)
### ComfyUI Revision: 1702 [dba4f3b4] | Released on '2023-11-19'
Total VRAM 24576 MB, total RAM 32684 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
VAE dtype: torch.bfloat16
Torch version: 2.1.1+cu121
Comfyroll Custom Nodes: Loaded
FizzleDorf Custom Nodes: Loaded
[comfy_mtb] | INFO -> loaded 55 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (4) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.
Cute Comfy: ⚠️ The folder "Z:\Path\To\Your\Comfy\Output\Folder" does not exist. Please check config.yaml.
°º¤ø,¸¸,ø¤º° Cute Comfy: Loaded! °º¤ø,¸¸,ø¤º°
Searge-SDXL v4.3.1 in D:\ComfyUI\custom_nodes\SeargeSDXL
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `D:\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 197 nodes successfully.
"Every artist dips his brush in his own soul, and paints his own nature into his pictures." - Henry Ward Beecher
Import times for custom nodes:
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
0.0 seconds: D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
0.0 seconds: D:\ComfyUI\custom_nodes\rembg-comfyui-node
0.0 seconds: D:\ComfyUI\custom_nodes\sdxl_utility.py
0.0 seconds: D:\ComfyUI\custom_nodes\comfyui_controlnet_aux
0.0 seconds: D:\ComfyUI\custom_nodes\sdxl_prompt_styler
0.0 seconds: D:\ComfyUI\custom_nodes\stability-ComfyUI-nodes
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUi_PromptStylers
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
0.0 seconds: D:\ComfyUI\custom_nodes\IPAdapter-ComfyUI
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Bmad-DirtyUndoRedo
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-post-processing-nodes
0.0 seconds: D:\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI_FizzNodes
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
0.0 seconds: D:\ComfyUI\custom_nodes\cute-comfy
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
0.0 seconds: D:\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
0.1 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
0.3 seconds: D:\ComfyUI\custom_nodes\comfyui_segment_anything
0.3 seconds: D:\ComfyUI\custom_nodes\comfy_mtb
0.3 seconds: D:\ComfyUI\custom_nodes\comfyui-reactor-node
0.3 seconds: D:\ComfyUI\custom_nodes\ComfyUI-AudioScheduler
0.4 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Manager
0.5 seconds: D:\ComfyUI\custom_nodes\SeargeSDXL
0.7 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
0.9 seconds: D:\ComfyUI\custom_nodes\comfyui-art-venture
1.8 seconds: D:\ComfyUI\custom_nodes\was-node-suite-comfyui
17.3 seconds: D:\ComfyUI\custom_nodes\ComfyUI-Allor
Starting server
To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: D:\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
got prompt
Requested to load SD1ClipModel
Loading 1 new model
Using pytorch attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using pytorch attention in VAE
----------------------------------------
Efficient Loader Models Cache:
Ckpt:
[1] AnythingV5V3_v5PrtRE
Vae:
[1] blessed2.vae
----------------------------------------
XY Plot Script Inputs:
(X) Seeds++ Batch:
8948454
8948455
8948456
8948457
(Y) Checkpoint:
('AnythingV5V3_v5PrtRE.safetensors', None, None)
('CounterfeitV30_v30.safetensors', None, None)
('FaceBombMix-fp16-no-ema.safetensors', None, None)
('MF-AscendanceOfABookworm_V2_T3.1.safetensors', None, None)
('MF-EminenceInShadow_V1.ckpt', None, None)
('MF-KonoSuba-V1.1-T2.11.ckpt', None, None)
('MeinaHentai V5.safetensors', None, None)
('MyneFactoryBase V1.0.safetensors', None, None)
('SomethingV2_2.safetensors', None, None)
('aurora_v10.safetensors', None, None)
('bofuri-ep01-gs57751.safetensors', None, None)
('calicomix_v75.safetensors', None, None)
('cetusMix_v4.safetensors', None, None)
('corneos7thHeavenMix_100.safetensors', None, None)
('ctd-darkmix.safetensors', None, None)
('darkSushi25D25D_v40.safetensors', None, None)
('deepboys25D_v30.safetensors', None, None)
('detailedprojectv4-fin.safetensors', None, None)
('dpep3-chillout.safetensors', None, None)
('dreamlike-anime-1.0.safetensors', None, None)
('hell5-dpep.safetensors', None, None)
('meinaalter_v3.safetensors', None, None)
('meinamix_meinaV11.safetensors', None, None)
('sakushimixFinished_sakushimixFinal.safetensors', None, None)
('sakushimixHentai_v11.safetensors', None, None)
('udonNoodleMix_udonNoodleMix.safetensors', None, None)
----------------------------------------
Requested to load SD1ClipModel
Loading 1 new model
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
File "D:\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 2175, in sample_adv
return super().sample(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 1542, in sample
process_values(model, refiner_model, add_noise, seed, steps, start_at_step, end_at_step,
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 1413, in process_values
samples, images, _, _ = process_latent_image(model, seed, steps, cfg, sampler_name, scheduler, positive, negative,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 537, in process_latent_image
samples = KSamplerAdvanced().sample(model, add_noise, seed, steps, cfg, sampler_name, scheduler,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\nodes.py", line 1271, in sample
return common_ksampler(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise, disable_noise=disable_noise, start_step=start_at_step, last_step=end_at_step, force_full_denoise=force_full_denoise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\nodes.py", line 1207, in common_ksampler
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 9, in informative_sample
return original_sample(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 147, in animatediff_sample
return orig_comfy_sample(model, noise, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\comfy\sample.py", line 98, in sample
sampler = comfy.samplers.KSampler(real_model, steps=steps, device=model.load_device, sampler=sampler_name, scheduler=scheduler, denoise=denoise, model_options=model.model_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\py\smZ_cfg_denoiser.py", line 321, in __init__
set_model_k(self)
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\py\smZ_cfg_denoiser.py", line 308, in set_model_k
self.model_denoise = CFGNoisePredictor(self.model) # main change
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\py\smZ_cfg_denoiser.py", line 256, in __init__
self.inner_model2.num_timesteps = model.num_timesteps
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ali\miniconda3\envs\comfy\Lib\site-packages\torch\nn\modules\module.py", line 1695, in __getattr__
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'BaseModel' object has no attribute 'num_timesteps'
Prompt executed in 4.54 seconds
FETCH DATA from: D:\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
Stopped server
(comfy) PS D:\ComfyUI> ^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment