Comments (7)
When I run the Google Colab file, I happened this issue and even though I re-install tensorflow 2.0.0 or manually change from keras import to from tensorflow.keras import, this error still existed
from fewshot-face-translation-gan.
Change the tenslrflow version to the version mentioned in the github. 1.2 something. And it will work.
from fewshot-face-translation-gan.
Change the tenslrflow version to the version mentioned in the github. 1.2 something. And it will work.
so i reseted runtime and then changed tensorflow version with
%tensorflow_version 1.12.0
but then i get another error while running model constructor:
AttributeError Traceback (most recent call last)
in ()
----> 1 model = FaceTranslationGANInferenceModel()
7 frames
/tensorflow-1.15.2/python3.6/tensorflow_core/python/util/module_wrapper.py in getattr(self, name)
191 def getattr(self, name):
192 try:
--> 193 attr = getattr(self._tfmw_wrapped_module, name)
194 except AttributeError:
195 if not self._tfmw_public_apis:
AttributeError: module 'tensorflow' has no attribute 'ops'
from fewshot-face-translation-gan.
so i reseted runtime and then changed tensorflow version with
%tensorflow_version 1.12.0
This does not change tf version to 1.12.0. This magic only change between latest 1.x and 2.x versions. You should manually install 1.12.0 or 1.13.1.
P.S: I use !pip install keras==2.2.4 tensorflow==1.13.1
and notebook works well
from fewshot-face-translation-gan.
I solved this issue by using these command
pip uninstall -y tensorflow
pip install tensorflow-gpu==1.13.1
from fewshot-face-translation-gan.
still gives this error
from models import FaceTranslationGANInferenceModel
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-12-e0f766e65a9c> in <module>()
----> 1 from models import FaceTranslationGANInferenceModel
5 frames
/tensorflow-1.15.2/python3.7/keras/backend/load_backend.py in <module>()
13 from .common import set_image_data_format
14 from .common import normalize_data_format
---> 15 from .common import symbolic, eager
16
17 # Set Keras base dir path given KERAS_HOME env variable, if applicable.
ImportError: cannot import name 'symbolic' from 'keras.backend.common' (/usr/local/lib/python3.7/dist-packages/keras/backend/common.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
from fewshot-face-translation-gan.
See this comment #32 (comment)
from fewshot-face-translation-gan.
Related Issues (20)
- donations?
- Bug in the function get_square_bbox
- ipynb colab error HOT 2
- Preprocess for build_inceptionresnetv1
- Dev colab notebook broken HOT 3
- Train
- How/where do I get the exe to run this on a windows pc?
- ValueError: Dimension 0 in both shapes must be equal, but are 1024 and 512. Shapes are [1024,256] and [512,256]. for 'Assign_12' (op: 'Assign') with input shapes: [1024,256], [512,256]. HOT 1
- When would the training code be released? HOT 2
- Does this have a license?
- Face size not not matching the photo
- InvalidArgumentError: Shape must be rank 1 but is rank 0 for 'bn10.20053864458101422_5/cond/Reshape_4' (op: 'Reshape') with input shapes: [1,64,1,1], [].
- where can download this weight
- InvalidArgumentError: You must feed a value for placeholder tensor 'input_14' with dtype float and shape [?,512] [[{{node input_14}}]] HOT 2
- AttributeError: module 'tensorflow' has no attribute 'get_default_graph' HOT 1
- ImportError: cannot import name 'keras_export' HOT 7
- Minimum GPU memory requirement for running the notebook
- eyes jitter
- No longer works on newest Colab version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fewshot-face-translation-gan.