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

RuntimeError: tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead. #77

Open
rachidd12 opened this issue Jan 21, 2021 · 2 comments

Comments

@rachidd12
Copy link

this occurs when i try to run !python {dir_path}/{NETWORK} {CONTENT_IMAGE_FN} {STYLE_IMAGE_FN} {RESULT_PREFIX}
--image_size {IMAGE_SIZE} --content_weight {CONTENT_WEIGHT} --style_weight
{STYLE_WEIGHT} --style_scale {STYLE_SCALE} --total_variation_weight
{TOTAL_VARIATION_WEIGHT} --content_loss_type {CONTENT_LOSS_TYPE} --num_iter
{NUM_ITERATIONS} --model {MODEL} --rescale_image {RESCALE_IMAGE}
--maintain_aspect_ratio {MAINTAIN_ASPECT_RATIO} --content_layer {CONTENT_LAYER}
--init_image {INITIALIZATION_IMAGE} --pool_type {POOLING_TYPE} --preserve_color
{PRESERVE_COLOR} --min_improvement {MIN_IMPROVEMENT}

@ThomasZacharias
Copy link

Facing the same run time error.

@rachidd12
Copy link
Author

Facing the same run time error.

#75
this solution work for me

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