-
Notifications
You must be signed in to change notification settings - Fork 8
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
RuntimeError: Evaluation error: ValueError: None values not supported.. #82
Comments
Now i did a reinstall of keras and now get the error:
Fehler in py_call_impl(callable, dots$args, dots$keywords) :
|
@ThomasWolf0701 there is a problem with custom R generators fitting with R |
R version: 3.6.3 |
Is there a Tensorflow version for which this works ? |
@ThomasWolf0701 what version of R packages (keras, tensorflow) do you have ? |
Here is the code i ran: library(tidyverse) BCCD_path <- "development/BCCD/" blood_anchors <- generate_anchors( blood_yolo <- yolo3( blood_yolo %>% load_darknet_weights("development/yolov3.weights") # Optional blood_yolo %>% compile( Now i am back to getting the following error already after the compile step: Detailed traceback: The session info:
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): The reticulate info:
python versions found: I ran the example from this page and it runs just fine: |
@ThomasWolf0701 please install It's still work in progress, but I hope it will be enough for now. Let me know if it's working for you. |
Tested it with a tensorflow 2.2 backend without gpu support for two epochs, and it´s working now. Mayn thanks for your help. Will let you know when I tested with GPU support. |
@ThomasWolf0701 In my settings I still have en error when using |
Describe the bug
I ran the cell sample from the github page and till the compile step everything is fine.
When running the compile step I get:
Error in py_call_impl(callable, dots$args, dots$keywords) :
RuntimeError: Evaluation error: ValueError: None values not supported..
A clear and concise description of what the bug is as
Detailed traceback:
Error in py_call_impl(callable, dots$args, dots$keywords) :
RuntimeError: Evaluation error: ValueError: None values not supported..
File "C:\Users\THOMAS1\DOCUME1\CONDA1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\ops\math_ops.py", line 1422, in range
limit = ops.convert_to_tensor(limit, name="limit")
File "C:\Users\THOMAS1\DOCUME1\CONDA1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1184, in convert_to_tensor
return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
File "C:\Users\THOMAS1\DOCUME1\CONDA1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1242, in convert_to_tensor_v2
as_ref=False)
File "C:\Users\THOMAS1\DOCUME1\CONDA1\envs\R-RETI1\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1296, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "C:\Users\THOMAS1\DOCUME1\CONDA1\envs\R-RETI1\lib\site-packages\tensorflow_c
The output after running yolo3
2020-10-17 19:37:03.572520: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
2020-10-17 19:37:06.629388: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-10-17 19:37:06.667244: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.645
pciBusID: 0000:01:00.0
2020-10-17 19:37:06.667676: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check.
2020-10-17 19:37:06.668985: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2020-10-17 19:37:06.669443: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-10-17 19:37:06.672431: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.645
pciBusID: 0000:01:00.0
2020-10-17 19:37:06.672801: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check.
2020-10-17 19:37:06.674102: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
2020-10-17 19:37:07.358505: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-10-17 19:37:07.358893: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0
2020-10-17 19:37:07.359069: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N
2020-10-17 19:37:07.360054: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6794 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
The code i ran
library(tidyverse)
library(platypus)
library(abind)
BCCD_path <- "BCCD/"
annot_path <- file.path(BCCD_path, "Annotations/")
blood_labels <- c("Platelets", "RBC", "WBC")
n_class <- length(blood_labels)
net_h <- 416 # Must be divisible by 32
net_w <- 416 # Must be divisible by 32
anchors_per_grid <- 3
blood_anchors <- generate_anchors(
anchors_per_grid = anchors_per_grid, # Number of anchors (per one grid) to generate
annot_path = annot_path, # Annotations directory
labels = blood_labels, # Class labels
n_iter = 10, # Number of k-means++ iterations
annot_format = "pascal_voc", # Annotations format
seed = 55, # Random seed
centroid_fun = mean # Centroid function
)
blood_yolo <- yolo3(
net_h = net_h, # Input image height
net_w = net_w, # Input image width
grayscale = FALSE, # Should images be loaded as grayscale or RGB
n_class = n_class, # Number of object classes (80 for COCO dataset)
anchors = blood_anchors # Anchor boxes
)
blood_yolo %>% load_darknet_weights("yolov3.weights") # Optional
YOUR CODE HERE
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Session information (please complete the following information):
The text was updated successfully, but these errors were encountered: