Closed karrykkk closed 6 months ago
@karrykkk can you delete re-download the model's checkpoint file, and make sure all codes and demo_sample.ipynb are of the latest git commit, and run it again?
Thanks for your reply!
I have found the reason. It was because the key scale
was not supported in torch==2.0.1
and I deleted this key argument in https://github.com/FoundationVision/VAR/blob/a5cf0a16624d27b4c687b08f2a0ab006438452cc/models/basic_var.py#L117. When I update torch
to 2.1.2 and use the origin code, the samples become normal.
Thanks for sharing this nice work!
I tried to sample with
demo_sample.ipynb
and var_d16.pth without any changes, but I got these abnormal results😢:The following is my environment:
Does this result from the precision problem or something else? I would appreciate it if you could help with this problem.🥺