Comments (3)
what is your tensorflow version? I am using 2.7.0. Recommmend you to upgrade / downgrade to this version.
from retinaface.
version
My tensorflow version is 2.2.0. I have try to upgrade to this version. But I get the following error:
Looking in indexes: https://pypi.douban.com/simple
ERROR: Could not find a version that satisfies the requirement tensorflow==2.7.0
ERROR: No matching distribution found for tensorflow==2.7.0
---------------------------------------------------------------------------
InternalError Traceback (most recent call last)
<ipython-input-1-ee0c71cae24a> in <module>
5 os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'
6
----> 7 faces = RetinaFace.extract_faces("ai.jpg")
8
9 print("There are ", len(faces), " faces in the image")
/usr/local/lib/python3.6/site-packages/retinaface/RetinaFace.py in extract_faces(img_path, threshold, model, align, allow_upscaling)
192 #---------------------------
193
--> 194 obj = detect_faces(img_path = img, threshold = threshold, model = model, allow_upscaling = allow_upscaling)
195
196 if type(obj) == dict:
/usr/local/lib/python3.6/site-packages/retinaface/RetinaFace.py in detect_faces(img_path, threshold, model, allow_upscaling)
88 landmarks_list = []
89 im_tensor, im_info, im_scale = preprocess.preprocess_image(img, allow_upscaling)
---> 90 net_out = model(im_tensor)
91 net_out = [elt.numpy() for elt in net_out]
92 sym_idx = 0
/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds)
883
884 with OptionalXlaContext(self._jit_compile):
--> 885 result = self._call(*args, **kwds)
886
887 new_tracing_count = self.experimental_get_tracing_count()
/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
955 # If we did not create any variables the trace we have is good enough.
956 return self._concrete_stateful_fn._call_flat(
--> 957 filtered_flat_args, self._concrete_stateful_fn.captured_inputs) # pylint: disable=protected-access
958
959 def fn_with_cond(inner_args, inner_kwds, inner_filtered_flat_args):
/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/function.py in _call_flat(self, args, captured_inputs, cancellation_manager)
1962 # No tape is watching; skip to running the function.
1963 return self._build_call_outputs(self._inference_function.call(
-> 1964 ctx, args, cancellation_manager=cancellation_manager))
1965 forward_backward = self._select_forward_and_backward_functions(
1966 args,
/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/function.py in call(self, ctx, args, cancellation_manager)
594 inputs=args,
595 attrs=attrs,
--> 596 ctx=ctx)
597 else:
598 outputs = execute.execute_with_cancellation(
/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
58 ctx.ensure_initialized()
59 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
---> 60 inputs, attrs, num_outputs)
61 except core._NotOkStatusException as e:
62 if name is not None:
InternalError: cuDNN launch failure : input shape ([1,3,1019,1980])
[[node model/bn_data/FusedBatchNormV3 (defined at /usr/local/lib/python3.6/site-packages/retinaface/RetinaFace.py:90) ]] [Op:__inference_function_7611]
Function call stack:
function
from retinaface.
your gpu seems not properly installed
from retinaface.
Related Issues (20)
- The retina face is too slow on a card with Arm64 Mali GPU. HOT 1
- High VRAM usage on Linux HOT 2
- Which library versions do you suggest for maximum GPU performance on Windows? HOT 1
- add github actions and perform unit tests & linting HOT 1
- create a logger HOT 1
- expanding facial area with percentage HOT 1
- Adding requirements and readme as a data file HOT 1
- Retina-face forces the installation of full tensorflow, even when tensorflow-cpu is already installed HOT 2
- Bug while feeding input image argument from web HOT 1
- do not limit align first detect second with one face HOT 1
- facial area variables HOT 1
- Error: keras to tf HOT 5
- Can detect_faces take in batched inputs? as in several rgb arrays at a time? HOT 1
- Argument `padding` must be either 'valid' or 'same'. Received: padding=VALID HOT 2
- publish a release on pip not to have `Argument padding must be either 'valid' or 'same'. Received: padding=VALID`
- Error when using retinaface with the latest TensorFlow version (2.16.1) HOT 6
- alignment_procedure crashes when both eyes are in the same position HOT 9
- detect_faces image preprocessing? HOT 2
- A KerasTensor cannot be used as input to a TensorFlow function HOT 4
- When extracting faces, sometimes function will return empty array if face is not completely in view. HOT 8
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 retinaface.