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

tutorial bug in consistency_training #1864

Closed
0x1orz opened this issue May 17, 2024 · 4 comments
Closed

tutorial bug in consistency_training #1864

0x1orz opened this issue May 17, 2024 · 4 comments

Comments

@0x1orz
Copy link

0x1orz commented May 17, 2024

Issue Type

Documentation Bug

Source

source

Keras Version

keras 2

Custom Code

Yes

OS Platform and Distribution

No response

Python version

No response

GPU model and memory

No response

Current Behavior?

A bug happened!

examples/vision/consistency_training.py in google colab


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from official.vision.image_classification.augment import RandAugment
2 from tensorflow.keras import layers
3
4 import tensorflow as tf
5 import tensorflow_addons as tfa

ModuleNotFoundError: No module named 'official.vision.image_classification'

Standalone code to reproduce the issue or tutorial link

https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/vision/ipynb/consistency_training.ipynb#scrollTo=vis6pLvU4jAc

Relevant log output

No response

@chunduriv
Copy link
Collaborator

@0x1orz,

I would like to suggest using the following import statement:

from official.vision.ops.augment import RandAugment

instead of this one:

from official.vision.image_classification.augment import RandAugment

This change will make your code more consistent with the models.official.vision

Copy link

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Jun 13, 2024
Copy link

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants