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

Cannot allocate memory #3

Closed
zxshi opened this issue Jan 24, 2019 · 1 comment
Closed

Cannot allocate memory #3

zxshi opened this issue Jan 24, 2019 · 1 comment

Comments

@zxshi
Copy link

zxshi commented Jan 24, 2019

I use python train.py --vtf --pretrained imagenet --loss-on-center --batch-size 6 --optim adamw --learning-rate 5e-4 --lr-scheduler noam --basenet resnet34 --max-epochs 100 --data-fold fold0 --log-dir runs/fold0 --resume runs/fold0/checkpoints/last-checkpoint-fold0.pth to train my dataset. My train data have 71712 images and valid data have 7968 images. I got this error:
0f69702d7a503b0aeb6e055814831c9

@xuyuan
Copy link
Collaborator

xuyuan commented Feb 22, 2019

The dataset tries to preload all image to RAM, you can try to disable preload in line:

transform=train_transform, preload=True, mask_threshold=args.drop_mask_threshold)

and
transform=valid_transform, preload=True)

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

3 participants