-
Notifications
You must be signed in to change notification settings - Fork 105
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
I have met this error when run train.py ... #5
Comments
Could you please show what is the version of your python, torch and numpy? |
Hi, @owang @sridharmahadevan @akanimax @huangzh13 My Environment: Ubuntu 17.x x64, Python 3.6.7, CUDA 10.1, Pytorch 0.4.1, numpy 1.15.4 Thanks. |
Could you please try again with python 3.6? |
Hi, @owang @sridharmahadevan @akanimax @huangzh13 It's same at python3.6 ... What's wrong to me? Thanks at any rate .... _; |
Could you try updating pytorch to |
OK, I'll try that... |
It works , Thanks a lot. from @bemoregt |
I am glad that it is working now. Just wanted to point out that since you are synthesizing Japanese celebs at 256 x 256 resolution, the Also, if you are able to get good results, please feel free to share these with us, I'll be happy to include them on the readme like @huangzh13's cartoons 😄. Hope this helps. 👍 |
But, ... Elapsed [0:04:07.511359] batch: 108 d_loss: 0.040370 g_loss: 18.472263 another error happens .. |
Hi, @akanimax OK, I see. I could understand my data's problems... My images include some rotated & zero-padded images. Because of those images, May be It happens... Many Thanks ~ |
Hi, @akanimax
celebJapan, epoch=230.., TitanXP + 1080ti
[image: epoch227.png]
Thanks ..
from @bemoregt.
2019년 4월 23일 (화) 오후 6:06, Animesh Karnewar <[email protected]>님이 작성:
… Could you try updating pytorch to 1.0.0? I hope this solves the problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEUCIZBH7TADL274J3TWE73PR3GRDANCNFSM4HHV3VGA>
.
|
Hi, @bemoregt Best regards. |
Hi, @huangzh13 @akanimax Ok, My celebJapan dataset's information is..
Is this too small dataset for MSG-GAN? Thanks. |
@bemoregt, Best regards, |
Hi, @akanimax @huangzh13 @owang @sridharmahadevan It seems that rotated face is very weak for generation using MSG-GAN. What is the image augmentation technics suitable for face generating GAN? Thanks . from @bemoregt |
Hi, @akanimax I'd be happy to test MSG-GAN on radiology data. Is there a way to allow for output grayscale images in your next update? Thanks! |
Great to hear that you would like to use the MSG-GAN for radiology data. Earlier when I said that I'll handle the Grayscale case, I meant just ignoring the grayscale images from the dataset. But for your case, it seems that all the images in the dataset would be grayscale. Will create a new branch for this development. It is a new addition to the network. Till then one thing you could try is to make RGB images from your gray-scale ones. The network will just learn to output the same values for the R, G and B channels. I have tried it before on MNIST data, it worked pretty well. Please feel free to ask if you have any more queries. Best regards, |
The expected number of image channels can now be expressed through the "--img_channels" option. This option changes the generator and discriminator architectures to generate/expect the given channel count and changes the data loading mechanism to expect and - if necessary - convert images to have this number of channels. - Fixes the issue with occasional grayscale images in RGB photo data sets reported in akanimax#5 because if --img_channels=3 (default), grayscale images are automatically converted to RGB in preprocessing. - Adds support for training with grayscale images, as requested in akanimax#5. - Makes it easier to implement training with multi-channel images that have more than 3 channels (which I'm planning to try soon). - Enables training with RGB data sets in grayscale mode by simply setting --img_channels=1.
Since I am also working on grayscale radiology data and needed support for that immediately, I've implemented this in #14. @Pascal900, maybe you can try my branch if this use case is still relevant to you. I'd be happy to hear feedback. |
The expected number of image channels can now be expressed through the "--img_channels" option. This option changes the generator and discriminator architectures to generate/expect the given channel count and changes the data loading mechanism to expect and - if necessary - convert images to have this number of channels. - Fixes the issue with occasional grayscale images in RGB photo data sets reported in akanimax#5 because if --img_channels=3 (default), grayscale images are automatically converted to RGB in preprocessing. - Adds support for training with grayscale images, as requested in akanimax#5. - Makes it easier to implement training with multi-channel images that have more than 3 channels (which I'm planning to try soon). - Enables training with RGB data sets in grayscale mode by simply setting --img_channels=1.
Hi, @owang @sridharmahadevan @akanimax @huangzh13
I have met this error when run train.py ...
What's wrong to me?
oem@sgi:~/BMSG-GAN/sourcecode$ python3 train.py --depth=7 --latent_size=128 --images_dir='../data/celebJapan/train' --sample_dir=samples/exp_2 --model_dir=models/exp_2
Total number of images in the dataset: 6604
error message -
Starting the training process ...
Epoch: 1
Elapsed [0:00:04.581270] batch: 1 d_loss: 4.346926 g_loss: 6.674685
Traceback (most recent call last):
File "train.py", line 254, in
main(parse_arguments())
File "train.py", line 248, in main
start=args.start
File "/home/oem/BMSG-GAN/sourcecode/MSG_GAN/GAN.py", line 482, in train
gen_img_files)
File "/home/oem/BMSG-GAN/sourcecode/MSG_GAN/GAN.py", line 345, in create_grid
samples = [Generator.adjust_dynamic_range(sample) for sample in samples]
File "/home/oem/BMSG-GAN/sourcecode/MSG_GAN/GAN.py", line 345, in
samples = [Generator.adjust_dynamic_range(sample) for sample in samples]
File "/home/oem/BMSG-GAN/sourcecode/MSG_GAN/GAN.py", line 96, in adjust_dynamic_range
data = data * scale + bias
TypeError: mul() received an invalid combination of arguments - got (numpy.float32), but expected one of:
didn't match because some of the arguments have invalid types: (numpy.float32)
didn't match because some of the arguments have invalid types: (numpy.float32)
Thanks in advance ~
The text was updated successfully, but these errors were encountered: