MLWIC2
MLWIC2 copied to clipboard
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'slice_input_producer'
Hi there,
I am trying to test the species model on the example images. At first I got the error
Traceback (most recent call last):
File "run.py", line 412, in
So I uncommented the lines
import tensorflow.compat.v1 as tf tf.disable_v2_behavior()
and now I get the error
Traceback (most recent call last):
File "run.py", line 412, in
I found a recommendation to use tf.data.Dataset.from_tensor_slices, as tf.train.slice_input_producer is apparently now deprecated.
I'm not sure if this package is still being maintained or if there might be something new in the works?
Hi there, I was running into similar issues with TensorFlow. After researching, I found that the version of TensorFlow may be the problem. Setting up my environment in Anaconda with Python version 3.7 and Tensorflow version 1.15 fixed the issues. I still received TensorFlow errors in R when running the code, but the Classify function was able to run and produce a .csv file with the AI's suggestions for image identification. [https://github.com/dlknapps/Anaconda-Enviorment-Fix-for-MLWIC2]
Hello @mikeyEcology, I received the same error rasutt described last year. Here is the output for your reference. I have r-reticulate activated, Python 3.7, and Tensorflow 1.14, but I am receiving this error. Could you please help me to resolve this?
Your data_info
file exists: /Users/bradyparlato/Desktop/image_labels.csv.
Your `path_prefix exists: /Users/bradyparlato/Desktop/images.
You are not using a Windows computer.
Traceback (most recent call last):
File "/Users/bradyparlato/Desktop/MLWIC2_helper_files/run.py", line 412, in