Hello everybody.
I’m trying to import packages and run “Residual_Networks” on my machine.
When trying to import the packages the following error message is appearing.
Note: I have already downloaded all the components present in the exercise to my machine.
import tensorflow as tf
import numpy as np
import scipy.misc
from tensorflow.keras.applications.resnet_v2 import ResNet50V2
from tensorflow.keras.preprocessing import image
from tensorflow.keras.applications.resnet_v2 import preprocess_input, decode_predictions
from tensorflow.keras import layers
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, Conv2D, AveragePooling2D, MaxPooling2D, GlobalMaxPooling2D
from tensorflow.keras.models import Model, load_model
from resnets_utils import *
from tensorflow.keras.initializers import random_uniform, glorot_uniform, constant, identity
from tensorflow.python.framework.ops import EagerTensor
from matplotlib.pyplot import imshow
from test_utils import summary, comparator
import public_tests
%matplotlib inline
###############################################################
Traceback (most recent call last):
File “c:\users\skunk\documents\github\deep_learning_specialization\venv\lib\site-packages\IPython\core\interactiveshell.py”, line 3441, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “C:\Users\skunk\AppData\Local\Temp/ipykernel_19248/1347645322.py”, line 10, in
from resnets_utils import *
File “C:\Users\skunk\Documents\GitHub\Deep_Learning_Specialization\Deep_Learning_Specialization\Course-4\week-2\resnets_utils.py”, line 1
^
SyntaxError: invalid syntax