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
Your paper is great and inspired me to replicate your experimental results. However, I encountered some issues while reproducing your code, which took me some time to resolve. I believe the maintenance of the code on GitHub could be improved. Below, I list the issues I encountered and the solutions I applied, which may serve as a reference for others attempting to replicate the code.
1.The command pip install requirements.txt should be modified to pip install -r requirements.txt. This is a minor issue.
2.The ImageNet 2012 validation dataset doesn't have the grouping format required by your code. I had to reorganize the ImageNet validation set according to your val_condition groups. It would be great if you could provide a convenient method for dividing the validation dataset.
3.The GPU version of your code lacks several components, such as the validate function, which forced me to port code from the HPU version. This is not very user-friendly for GPU users. I hope the GPU version of the code can be more complete in the future.
4.The biggest issue I encountered: when following your code, the conditions I provided during inference didn't seem to take effect. The images generated in each batch were highly similar and did not reflect the specified conditions. After debugging for a long time, I found that the problem was with the random seed setting during inference. In the current code, the seed is fixed during conditional inference, which causes the generated images in different batches to be nearly identical.
To fix this, I modified the 'pix_cond_inference' function as follows:
images = var.module.conditional_infer_cfg(
B=B,
label_B=conditions,
cfg=guidance_scale,
top_k=top_k,
top_p=top_p,
g_seed=None,
c_mask=c_mask,
c_img=c_img,
cond_type=cond_type
)
I changed g_seed=seed to g_seed=None, which allows the images to be generated correctly according to the provided conditions.
I hope this will be helpful for those who replicate the code in the future, and I look forward to the author's future papers!
The text was updated successfully, but these errors were encountered:
Your paper is great and inspired me to replicate your experimental results. However, I encountered some issues while reproducing your code, which took me some time to resolve. I believe the maintenance of the code on GitHub could be improved. Below, I list the issues I encountered and the solutions I applied, which may serve as a reference for others attempting to replicate the code.
1.The command pip install requirements.txt should be modified to pip install -r requirements.txt. This is a minor issue.
2.The ImageNet 2012 validation dataset doesn't have the grouping format required by your code. I had to reorganize the ImageNet validation set according to your val_condition groups. It would be great if you could provide a convenient method for dividing the validation dataset.
3.The GPU version of your code lacks several components, such as the validate function, which forced me to port code from the HPU version. This is not very user-friendly for GPU users. I hope the GPU version of the code can be more complete in the future.
4.The biggest issue I encountered: when following your code, the conditions I provided during inference didn't seem to take effect. The images generated in each batch were highly similar and did not reflect the specified conditions. After debugging for a long time, I found that the problem was with the random seed setting during inference. In the current code, the seed is fixed during conditional inference, which causes the generated images in different batches to be nearly identical.
To fix this, I modified the 'pix_cond_inference' function as follows:
images = var.module.conditional_infer_cfg(
B=B,
label_B=conditions,
cfg=guidance_scale,
top_k=top_k,
top_p=top_p,
g_seed=None,
c_mask=c_mask,
c_img=c_img,
cond_type=cond_type
)
I changed g_seed=seed to g_seed=None, which allows the images to be generated correctly according to the provided conditions.
I hope this will be helpful for those who replicate the code in the future, and I look forward to the author's future papers!
The text was updated successfully, but these errors were encountered: