ZhiXiao Zhu

Results issues of ZhiXiao Zhu

您好! 感谢作者开源了!已经成功推理,生成的图片质量高。 现用bash scripts/train/t2i/train_tim_t2i.sh进行训练,但是把batchsize=1,还是报OOM。 我在配置文件中添加了 ``` fsdp_config: auto_wrap_policy: TRANSFORMER_BASED_WRAP backward_prefetch: BACKWARD_PRE forward_prefetch: false cpu_ram_efficient_loading: true offload_params: false sharding_strategy: FULL_SHARD state_dict_type: SHARDED_STATE_DICT sync_module_states: true transformer_layer_cls_to_wrap: BertLayer use_orig_params: true min_num_params: 1e-6 limit_all_gathers:...

论文中展示的结果非常好,十分感谢作者做出的贡献,并开源了。 想要推理并复现一下,发现有点问题,请教一下: 1)当text encoder 用google/gemma-3-1b-it时,get_decoder()返回的是None,要如何修改才能正确使用text encoder? 2)如果去掉这个get_decoder(),因为use_last_hidden_state配置为True,会在TiM/tim/models/utils/text_encoders.py", line 44, in encode_prompt报错: [rank0]: prompt_embeds = results.last_hidden_state [rank0]: AttributeError: 'CausalLMOutputWithPast' object has no attribute 'last_hidden_state' 3)如果把use_last_hidden_state配置为False,则出图不对。 请问如何修改?

### System Info ```Shell accelerate 1.10.1 os: Linux #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux python: 3.10 numpy: 1.26.0 torch version: 2.5.1+cu118 ``` ### Information...