You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when running the inference code I am getting this error. Is there anything I am missing ?
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
/media/MotionDirector/MotionDirector_train.py:1048 in
/media/MotionDirector/utils/lora.py:532 in
inject_trainable_lora_extended
529 if bias is not None:
530 _tmp.conv.bias = bias
531 # switch the module
❱ 532 _tmp.to(_child_module.weight.device).to(_child_module.weight.dtype)
533 if bias is not None:
534 _tmp.to(_child_module.bias.device).to(_child_module.bias.dtype)
535
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
UnboundLocalError: local variable '_tmp' referenced before assignment
The text was updated successfully, but these errors were encountered:
Hello, when running the inference code I am getting this error. Is there anything I am missing ?
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
/media/MotionDirector/MotionDirector_train.py:1048 in
1045 parser = argparse.ArgumentParser()
1046 parser.add_argument("--config", type=str, default='configs/config_single_video.yaml'
1047 args = parser.parse_args()
❱ 1048 main(**OmegaConf.load(args.config))
1049
/media/MotionDirector/MotionDirector_train.py:607 in main
❱ 607 unet_lora_params_temporal, unet_negation_temporal = lora_manager_temporal.add_lo
608 use_unet_lora, unet, lora_manager_temporal.unet_replace_modules, lora_unet_d
609 lora_path + '/temporal/lora/', r=lora_rank)
610
/media//MotionDirector/utils/lora_handler.py:214 in
add_lora_to_model
211 )
212
213 if use_lora:
❱ 214 params, negation, is_injection_hybrid = self.do_lora_injection(
215 model,
216 replace_modules,
217 bias=self.lora_bias,
/media/MotionDirector/utils/lora_handler.py:183 in
do_lora_injection
180 is_injection_hybrid = True
181 injector_args = lora_loader_args
182
❱ 183 params, negation = self.lora_injector(**injector_args) # inject_trainable_l
184 for _up, _down in extract_lora_ups_down(
185 model,
186 target_replace_module=REPLACE_MODULES):
/media/MotionDirector/utils/lora.py:532 in
inject_trainable_lora_extended
❱ 532 _tmp.to(_child_module.weight.device).to(_child_module.weight.dtype)
533 if bias is not None:
534 _tmp.to(_child_module.bias.device).to(_child_module.bias.dtype)
535
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
UnboundLocalError: local variable '_tmp' referenced before assignment
The text was updated successfully, but these errors were encountered: