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

IS there a way to turn off discriminator training? #11

Open
Suvi-dha opened this issue Oct 11, 2022 · 4 comments
Open

IS there a way to turn off discriminator training? #11

Suvi-dha opened this issue Oct 11, 2022 · 4 comments

Comments

@Suvi-dha
Copy link

No description provided.

@Suvi-dha
Copy link
Author

Suvi-dha commented Oct 11, 2022

I am getting this error when training to train just shape maps using your pretrained network. And I don't have labels in my training data.

`Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tensorflow_core/python/framework/ops.py", line 638, in set_shape
c_api.TF_GraphSetTensorShape_wrapper(
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension 1 in both shapes must be equal, but are 0 and 7. Shapes are [?,0] and [?,7].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 290, in
tfutil.call_func_by_name(**config.train)
File "/root/TBGAN/tfutil.py", line 234, in call_func_by_name
return import_obj(func)(*args, **kwargs)
File "/root/TBGAN/train.py", line 189, in train_progressive_gan
G_loss = tfutil.call_func_by_name(G=G_gpu, D=D_gpu, opt=G_opt, training_set=training_set, minibatch_size=minibatch_split, **config.G_loss)
File "/root/TBGAN/tfutil.py", line 234, in call_func_by_name
return import_obj(func)(*args, **kwargs)
File "/root/TBGAN/loss.py", line 30, in G_wgan_acgan
fake_images_out = G.get_output_for(latents, labels, is_training=True)
File "/root/TBGAN/tfutil.py", line 507, in get_output_for
out_expr = self._build_func(*named_inputs, **all_kwargs)
File "", line 175, in G_paper
File "/usr/local/lib/python3.8/dist-packages/tensorflow_core/python/framework/ops.py", line 645, in set_shape
raise ValueError(str(e))
ValueError: Dimension 1 in both shapes must be equal, but are 0 and 7. Shapes are [?,0] and [?,7].`

@rohit7044
Copy link

Hey @Suvi-dha !
Can you tell me how you manged to get the training dataset ready?

@Suvi-dha
Copy link
Author

Hi @rohit7044 I have few 3D models with their textures. I converted those 3D models to shape maps and normals.

@rohit7044
Copy link

But the input says modalities. What does modalities mean ? I am so confused.
Given multi-view images as input I am trying to understand if TB-GAN can generate normal and UV map. Can you share your opinion?

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

2 participants