MotionGPT3 icon indicating copy to clipboard operation
MotionGPT3 copied to clipboard

Stage2_ Instruct: AssertionError: found unsupported PlaceHolderramelen_Placeholder> frames

Open DominikVincent opened this issue 1 year ago • 1 comments

Training stage 2.1 (instruction multi modal alignment, python -m train --cfg configs/MoT_vae_stage2_instruct.yaml --nodebug ) yields this error:

    outputs = self.lm(texts, feats_ref, self.vae, lengths, tasks)                         
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                         
  File "/local/home/dhollidt/miniconda3/envs/mgpt3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl                                               
    return forward_call(*args, **kwargs)                                                  
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                            
  File "/local/home/dhollidt/repos/MotionGPT3/motGPT/archs/motgpt_lm.py", line 295, in forward                                                                                      
    return self.forward_dec(texts, motion_feats, motion_encode_net, lengths, tasks,                                                                                                 
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        
  File "/local/home/dhollidt/repos/MotionGPT3/motGPT/archs/motgpt_lm.py", line 513, in forward_dec                                                        
    inputs, outputs, modes = self.template_fulfill(tasks, lengths, texts)                 
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                 
  File "/local/home/dhollidt/repos/MotionGPT3/motGPT/archs/motgpt_lm.py", line 1055, in template_fulfill                                                        
    self.placeholder_fulfill(input_template, length, self.input_motion_holder_seq, texts[i]))                                                                                       
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                        
  File "/local/home/dhollidt/repos/MotionGPT3/motGPT/archs/motgpt_lm.py", line 1037, in placeholder_fulfill                                  
    assert False, 'found unsupported PlaceHolder' + prompt[startIndex-8:startIndex+20]                                                                                              
           ^^^^^                                                                                                                                                                    
AssertionError: found unsupported PlaceHolderramelen_Placeholder> frames 

Is it correct that in template_instructions.json, the <Framelen_Placeholder> should be<Frame_Placeholder> instead?

DominikVincent avatar Sep 28 '25 12:09 DominikVincent

Exactly!Fix this in newest commit.

BoifZ avatar Oct 09 '25 05:10 BoifZ