Skip to content

Conversation

@james77777778
Copy link
Contributor

I've noticed that the image urls are broken.

Instead of:
https://keras.io/home/hongyu/workspace/keras-io/guides/img/stable_diffusion_3_in_keras_hub/stable_diffusion_3_in_keras_hub_7_0.png
The correct url should be:
https://keras.io/img/guides/stable_diffusion_3_in_keras_hub/stable_diffusion_3_in_keras_hub_7_0.png

The issue might be in autogen.py but I'm not sure what the root cause is.

CC @divyashreepathihalli
I've fixed the image urls in SAM as well.

@divyashreepathihalli
Copy link
Collaborator

Thanks @james77777778 !!!

"!!wget --user-agent=\"User-Agent: Mozilla/5.0\" -O mountain_dog_mask.png https://i.imgur.com/n3Prpj6.png"
"!pip install -Uq keras\n",
"!pip install -Uq git+https://github.com/keras-team/keras-hub.git\n",
"!wget --user-agent=\"User-Agent: Mozilla/5.0\" -O mountain_dog.png https://i.imgur.com/3AHYG9Z.png\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way of getting images from imgur isn't too great. How about... pushing the images to the keras.io repo (in an examples/assets/ folder or something like that) and linking them from github?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Will fix it in another PR!

Copy link
Contributor

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@fchollet fchollet merged commit c91cce7 into keras-team:master Oct 17, 2024
2 checks passed
@james77777778 james77777778 deleted the fix-imgs branch October 17, 2024 04:14
@james77777778 james77777778 mentioned this pull request Oct 18, 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

Successfully merging this pull request may close these issues.

4 participants