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

It is not currently possible to manually set the aspect. #13

Closed
ChauncyFr opened this issue Nov 11, 2019 · 12 comments
Closed

It is not currently possible to manually set the aspect. #13

ChauncyFr opened this issue Nov 11, 2019 · 12 comments
Labels
good first issue Good for newcomers

Comments

@ChauncyFr
Copy link

错误在于binvox_visualizatrion.py 这个文件。具体错误如下

@hzxie
Copy link
Owner

hzxie commented Nov 11, 2019

What's your version of matplotlib?

@hzxie hzxie closed this as completed Nov 12, 2019
@ChauncyFr
Copy link
Author

What's your version of matplotlib?

Thank you very much for your reply, my version of matplotlib is 3.1.1

@hzxie
Copy link
Owner

hzxie commented Nov 12, 2019

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

@ChauncyFr
Copy link
Author

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

@saisai1002
Copy link

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

@ChauncyFr
Copy link
Author

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

@saisai1002
Copy link

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

好的,谢谢!

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

好的,谢谢

@saisai1002
Copy link

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

[INFO] 2019-11-18 20:14:12.342971 [Epoch 1/250][Batch 478/478] BatchTime = 0.641 (s) DataTime = 0.000 (s) EDLoss = 1.6889 RLoss = 1.5908
[INFO/Process-1] process shutting down
[INFO/Process-2] process shutting down
[INFO/Process-3] process shutting down
[INFO/Process-1] process exiting with exitcode 0
[INFO/Process-2] process exiting with exitcode 0
[INFO/Process-4] process shutting down
[INFO/Process-3] process exiting with exitcode 0
[INFO/Process-4] process exiting with exitcode 0
[INFO] 2019-11-18 20:14:12.717975 Epoch [1/250] EpochTime = 364.328 (s) EDLoss = 2.7254 RLoss = 2.1918
[INFO/Process-5] child process calling self.run()
[INFO/Process-5] process shutting down
[INFO/Process-5] process exiting with exitcode 0
Traceback (most recent call last):
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 389), '|u1')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File ".\runner.py", line 87, in
main()
File ".\runner.py", line 68, in main
train_net(cfg)
File "D:\lisaisai\Pix2Vox-master\core\train.py", line 261, in train_net
iou = test_net(cfg, epoch_idx + 1, output_dir, val_data_loader, val_writer, encoder, decoder, refiner, merger)
File "D:\lisaisai\Pix2Vox-master\core\test.py", line 150, in test_net
test_writer.add_image('Test Sample#%02d/Volume Reconstructed' % sample_idx, rendering_views, epoch_idx)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\writer.py", line 584, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 271, in image
image = make_image(tensor, rescale=rescale)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 311, in make_image
image = Image.fromarray(tensor)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
[INFO/MainProcess] process shutting down

我修改完后,不出之前的错误了,现在出这个错误,有遇到吗?谢谢

@hzxie
Copy link
Owner

hzxie commented Nov 18, 2019

@saisai1002
Please refer to #14

@ChauncyFr
Copy link
Author

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

[INFO] 2019-11-18 20:14:12.342971 [Epoch 1/250][Batch 478/478] BatchTime = 0.641 (s) DataTime = 0.000 (s) EDLoss = 1.6889 RLoss = 1.5908
[INFO/Process-1] process shutting down
[INFO/Process-2] process shutting down
[INFO/Process-3] process shutting down
[INFO/Process-1] process exiting with exitcode 0
[INFO/Process-2] process exiting with exitcode 0
[INFO/Process-4] process shutting down
[INFO/Process-3] process exiting with exitcode 0
[INFO/Process-4] process exiting with exitcode 0
[INFO] 2019-11-18 20:14:12.717975 Epoch [1/250] EpochTime = 364.328 (s) EDLoss = 2.7254 RLoss = 2.1918
[INFO/Process-5] child process calling self.run()
[INFO/Process-5] process shutting down
[INFO/Process-5] process exiting with exitcode 0
Traceback (most recent call last):
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 389), '|u1')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File ".\runner.py", line 87, in
main()
File ".\runner.py", line 68, in main
train_net(cfg)
File "D:\lisaisai\Pix2Vox-master\core\train.py", line 261, in train_net
iou = test_net(cfg, epoch_idx + 1, output_dir, val_data_loader, val_writer, encoder, decoder, refiner, merger)
File "D:\lisaisai\Pix2Vox-master\core\test.py", line 150, in test_net
test_writer.add_image('Test Sample#%02d/Volume Reconstructed' % sample_idx, rendering_views, epoch_idx)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\writer.py", line 584, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 271, in image
image = make_image(tensor, rescale=rescale)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 311, in make_image
image = Image.fromarray(tensor)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
[INFO/MainProcess] process shutting down

我修改完后,不出之前的错误了,现在出这个错误,有遇到吗?谢谢

遇到了,你可以试试这个方法,https://blog.csdn.net/lcjhust2012/article/details/96836425

@saisai1002
Copy link

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

[INFO] 2019-11-18 20:14:12.342971 [Epoch 1/250][Batch 478/478] BatchTime = 0.641 (s) DataTime = 0.000 (s) EDLoss = 1.6889 RLoss = 1.5908
[INFO/Process-1] process shutting down
[INFO/Process-2] process shutting down
[INFO/Process-3] process shutting down
[INFO/Process-1] process exiting with exitcode 0
[INFO/Process-2] process exiting with exitcode 0
[INFO/Process-4] process shutting down
[INFO/Process-3] process exiting with exitcode 0
[INFO/Process-4] process exiting with exitcode 0
[INFO] 2019-11-18 20:14:12.717975 Epoch [1/250] EpochTime = 364.328 (s) EDLoss = 2.7254 RLoss = 2.1918
[INFO/Process-5] child process calling self.run()
[INFO/Process-5] process shutting down
[INFO/Process-5] process exiting with exitcode 0
Traceback (most recent call last):
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 389), '|u1')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\runner.py", line 87, in
main()
File ".\runner.py", line 68, in main
train_net(cfg)
File "D:\lisaisai\Pix2Vox-master\core\train.py", line 261, in train_net
iou = test_net(cfg, epoch_idx + 1, output_dir, val_data_loader, val_writer, encoder, decoder, refiner, merger)
File "D:\lisaisai\Pix2Vox-master\core\test.py", line 150, in test_net
test_writer.add_image('Test Sample#%02d/Volume Reconstructed' % sample_idx, rendering_views, epoch_idx)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\writer.py", line 584, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 271, in image
image = make_image(tensor, rescale=rescale)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 311, in make_image
image = Image.fromarray(tensor)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
[INFO/MainProcess] process shutting down
我修改完后,不出之前的错误了,现在出这个错误,有遇到吗?谢谢

遇到了,你可以试试这个方法,https://blog.csdn.net/lcjhust2012/article/details/96836425

太巧了,我也找到了这个方法,问了下作者,是我的tensorboardx版本太高了,我降到1.2.0就不报错了,感谢!

@ChauncyFr
Copy link
Author

My matplotlib version is 3.0.3. I'm not sure whether there is something wrong with the newer version.
You can delete the corresponding statement in test.py to continue the training process.

Thank you very much for your prompt letter. That is true,this is problem caused by matplotlib(3.1).
For more,see https://github.com/matplotlib/matplotlib/issues/1077

我也出现了这个问题,请问您是修改了matplotlib的版本(3.0.3)就可以正常运行了吗?谢谢

是的,你修改到3.0.3就可以了,因为3.1后发生了改动

[INFO] 2019-11-18 20:14:12.342971 [Epoch 1/250][Batch 478/478] BatchTime = 0.641 (s) DataTime = 0.000 (s) EDLoss = 1.6889 RLoss = 1.5908
[INFO/Process-1] process shutting down
[INFO/Process-2] process shutting down
[INFO/Process-3] process shutting down
[INFO/Process-1] process exiting with exitcode 0
[INFO/Process-2] process exiting with exitcode 0
[INFO/Process-4] process shutting down
[INFO/Process-3] process exiting with exitcode 0
[INFO/Process-4] process exiting with exitcode 0
[INFO] 2019-11-18 20:14:12.717975 Epoch [1/250] EpochTime = 364.328 (s) EDLoss = 2.7254 RLoss = 2.1918
[INFO/Process-5] child process calling self.run()
[INFO/Process-5] process shutting down
[INFO/Process-5] process exiting with exitcode 0
Traceback (most recent call last):
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 389), '|u1')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\runner.py", line 87, in
main()
File ".\runner.py", line 68, in main
train_net(cfg)
File "D:\lisaisai\Pix2Vox-master\core\train.py", line 261, in train_net
iou = test_net(cfg, epoch_idx + 1, output_dir, val_data_loader, val_writer, encoder, decoder, refiner, merger)
File "D:\lisaisai\Pix2Vox-master\core\test.py", line 150, in test_net
test_writer.add_image('Test Sample#%02d/Volume Reconstructed' % sample_idx, rendering_views, epoch_idx)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\writer.py", line 584, in add_image
image(tag, img_tensor, dataformats=dataformats), global_step, walltime)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 271, in image
image = make_image(tensor, rescale=rescale)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\tensorboardX\summary.py", line 311, in make_image
image = Image.fromarray(tensor)
File "C:\Users\A409\AppData\Roaming\Python\Python35\site-packages\PIL\Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
[INFO/MainProcess] process shutting down
我修改完后,不出之前的错误了,现在出这个错误,有遇到吗?谢谢

遇到了,你可以试试这个方法,https://blog.csdn.net/lcjhust2012/article/details/96836425

太巧了,我也找到了这个方法,问了下作者,是我的tensorboardx版本太高了,我降到1.2.0就不报错了,感谢!

嗷嗷,我是将CHW改成了HWC就可以了。

@hzxie hzxie changed the title 用ShapeNet数据集进行训练,在即将迭代完一次后出现错误。 It is not currently possible to manually set the aspect. Nov 20, 2019
@hzxie hzxie added the good first issue Good for newcomers label Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants