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

AttributeError: 'int' object has no attribute 'strip' #46

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ffdown
Copy link

@ffdown ffdown commented Sep 30, 2022

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ E:\ai\sd\dbsdo\main.py:792 in │
│ │
│ 789 │ │ # configure learning rate │
│ 790 │ │ bs, base_lr = config.data.params.batch_size, config.model.base_learning_rate │
│ 791 │ │ if not cpu: │
│ ❱ 792 │ │ │ ngpu = len(lightning_config.trainer.gpus.strip(",").split(',')) │
│ 793 │ │ else: │
│ 794 │ │ │ ngpu = 1 │
│ 795 │ │ if 'accumulate_grad_batches' in lightning_config.trainer: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'int' object has no attribute 'strip'

@ffdown ffdown changed the title NameError: name 'trainer' is not defined AttributeError: 'int' object has no attribute 'strip' Sep 30, 2022
Fix typo in README (ebedding -> embedding)
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

Successfully merging this pull request may close these issues.

5 participants