-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
immigrating to rtx 3080 error #2427
Comments
hi all. after much research the following working setup was found:
|
solved |
@palram-vcr What command u have used to install TensorFlow? |
pip install "path to wheel file" Good luck |
Thanks, I installed everything exactly like you but I am getting this error when use tensorflow
|
@palram-vcr Have u got this error
|
try to get this version of the dll from an earlier version of cuda and put it in the bin directory of the cuda 11,1 install |
@palram-vcr Thanks a lot. Your solution worked perfectly. |
Thank you! Also works with: |
@palram-vcr Hello! Maybe you have a modified version of TF for Linux that is working with your setup? |
@javoweb currently not running on a Linux machine, but you can check out the Nvidia implementation of Tensorflow that way you can leave the mask-rcnn files unchanged , link is : |
@palram-vcr Great, thanks! |
@palram-vcr i am trying to install the tensorflow wheel using pip3 install path/to/folder but i get this error: |
Thanks it worked with tensorflow 2.4.1 the training go more faster than tensorflow 1.5.0 which was used by matterport |
Hey all Glad to hear that some of you got it, this issue is everywhere on this repo.... My question to the ones who have succeeded in making this work is - how come it is well known that using tensorflow.keras side-by-side with keras is not recommended at all, while this is the requirements of the solution. A special thanks for @palram-vcr for finding the solution, and @alcarazolabs for the update on the TF2.4.1 version |
@EvgeneKuklin |
Thank you very much!! |
Also work with: |
The combination that worked for me with 3060Ti: Python 3.8 |
system setup :
rtx 3080
python 3.7.4
windows 10
tensorflow : 2.5.0-dev20201118 (nightly build)
keras : 2.4.3
cuda : 11.0
cudnn : 8.0.4.30
background:
model was running fine on old GPU (rtx 2060) , after changing to the 3080 , using tensorflow would take a long time for some operations (not related to the model, for example the line : tf.constant([[1.0,2.0,3.0],[4.0,5.0,6.0]]) )
as well as displaying NAN for the loss values (all except classification loss which displayed one constant value) ,
the long waiting times was a tensorflow version issue ,which was fixed by upgrading to the nightly build (2.5.0-dev20201118) and the rest of the resulting requirements as specified in system setup above ,however the upgrade resulted in errors when running the model !!!
issue description:
on running training came across the following errror
Exception has occurred: TypeError
Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) dtype=float32 (created by layer 'tf.math.truediv')> with type KerasTensor
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\framework\type_spec.py", line 554, in type_spec_from_value
(value, type(value).name))
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\keras_tensor.py", line 205, in from_tensor
type_spec = type_spec_module.type_spec_from_value(tensor)
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\keras_tensor.py", line 606, in keras_tensor_from_tensor
out = keras_tensor_cls.from_tensor(tensor)
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\util\nest.py", line 672, in
structure[0], [func(*x) for x in entries],
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\util\nest.py", line 672, in map_structure
structure[0], [func(*x) for x in entries],
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\base_layer.py", line 871, in _infer_output_signature
keras_tensor.keras_tensor_from_tensor, outputs)
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\base_layer.py", line 824, in _keras_tensor_symbolic_call
return self._infer_output_signature(inputs, args, kwargs, input_masks)
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\base_layer.py", line 1093, in _functional_construction_call
inputs, input_masks, args, kwargs)
File "C:\Users\ashaf102\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\base_layer.py", line 954, in call
input_list)
File "C:\AsafProj\DefectDetector\defect_detection\mask\mrcnn\model.py", line 1880, in build
x, K.shape(input_image)[1:3]))(input_gt_boxes)
File "C:\AsafProj\DefectDetector\defect_detection\mask\mrcnn\model.py", line 1841, in init
self.keras_model = self.build(mode=mode, config=config)
File "C:\AsafProj\DefectDetector\defect_detection\defectTrain.py", line 41, in init
self.model = modellib.MaskRCNN(mode="training", config=self.config,model_dir=self.logDir)
File "C:\AsafProj\DefectDetector\asaf_defect.py", line 28, in
trainer = Train.defectTrainer()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
Thanks in advance
The text was updated successfully, but these errors were encountered: