Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'GeneralTracker' object has no attribute 'log_images' #38

Open
RohollahHS opened this issue Oct 15, 2024 · 2 comments
Open

'GeneralTracker' object has no attribute 'log_images' #38

RohollahHS opened this issue Oct 15, 2024 · 2 comments

Comments

@RohollahHS
Copy link

RohollahHS commented Oct 15, 2024

Hi, when trying to log the reconstructed images in the stage 1 training, I got this error

  File "/home/rohol/projects/1d-tokenizer/utils/train_utils.py", line 762, in reconstruct_images
    accelerator.get_tracker("wandb").log_images(
AttributeError: 'GeneralTracker' object has no attribute 'log_images'
@cornettoyu
Copy link
Collaborator

It seems to me there is some problem at accelerator lib which should get WandBTracker instance that supports log_images

Could you double check the accelerate and wandb version? Or alternatively, you can switch to tensorboard by setting config.training.enable_wandb=False. Or, you can just disable all loggers as we also implement saving visualization to local storage so it should work as well.

@RohollahHS
Copy link
Author

Thanks for your response. Yes, I also tested tensorboard and it also returns an error, so I commented out both wand and tensorboard and continued with saving them locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants