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

IndexError: index 2 is out of bounds for axis 0 with size 2 #66

Open
WestbrookZero opened this issue Jan 24, 2024 · 0 comments
Open

IndexError: index 2 is out of bounds for axis 0 with size 2 #66

WestbrookZero opened this issue Jan 24, 2024 · 0 comments

Comments

@WestbrookZero
Copy link

WestbrookZero commented Jan 24, 2024

在Windows10系统下,当我运行python train_localtoon.py训练的时候,报错如下:
2024-01-24 17:06:39.367662: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_100.dll
2024-01-24 17:06:52,521 - modelscope - INFO - Iter: 0, d_loss: 0.5868567228317261, g_loss: 0.24602027237415314
0%| | 0/300000 [00:17<?, ?it/s]
Traceback (most recent call last):
File "G:/Project/Face/DCT-Net/train_localtoon.py", line 37, in
main(args)
File "G:/Project/Face/DCT-Net/train_localtoon.py", line 25, in main
trainer.train()
File "D:\InstallPath\Develop\Anaconda3\2020.07\envs\dctnet\lib\site-packages\modelscope\trainers\cv\cartoon_translation_trainer.py", line 218, in train
str('%8d' % max_steps) + '_face_result.jpg', 4)
File "D:\InstallPath\Develop\Anaconda3\2020.07\envs\dctnet\lib\site-packages\modelscope\models\cv\cartoon\utils.py", line 142, in write_batch_image
image[k] = (image[k] + 1) * 127.5
IndexError: index 2 is out of bounds for axis 0 with size 2

@WestbrookZero WestbrookZero changed the title Resource exhausted: OOM when allocating tensor with shape[32,256,64,64] IndexError: index 2 is out of bounds for axis 0 with size 2 Jan 24, 2024
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

1 participant