You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am running the model on React Native. I input the image taken from the phone's camera into the model, and almost always get an incorrect label. The Input itself is pictures taken from the dataset via my Phone's Camera.
Steps to Reproduce
I open the picture of the leaf on my laptop screen (from Kaggle)
I take its picture from the phone's camera.
Output is incorrect class index.
Screenshots
I am attaching the inputs to the model as it is.
Input 1
Input 2
Output of Input 2
This should be "32": "Tomato___Septoria_leaf_spot", not "36": "Tomato___Tomato_mosaic_virus".
Am I doing something wrong? Is the input to the model wrong? I am very new to ML, so I have very little idea as to how I can improve the classification. Would other models yield the same incorrect labels?
Smartphone (please complete the following information):
Device: Samsung Galaxy A52
OS: Android 12
Browser: Nope, Bare React Native
Code
`
import React, { useEffect, useState } from 'react';
import { Image, StyleSheet, Alert } from 'react-native';
import * as tf from '@tensorflow/tfjs';
import { fetch, bundleResourceIO, decodeJpeg } from '@tensorflow/tfjs-react-native';
import * as jpeg from 'jpeg-js';
import * as FileSystem from "expo-file-system";
Describe the bug
I am running the model on React Native. I input the image taken from the phone's camera into the model, and almost always get an incorrect label. The Input itself is pictures taken from the dataset via my Phone's Camera.
Steps to Reproduce
Screenshots
I am attaching the inputs to the model as it is.
Input 1
Input 2
Output of Input 2
![image](https://user-images.githubusercontent.com/29353361/183726159-a69f5ac9-7dc9-48ed-9026-09dd978de8bc.png)
This should be "32": "Tomato___Septoria_leaf_spot", not "36": "Tomato___Tomato_mosaic_virus".
Am I doing something wrong? Is the input to the model wrong? I am very new to ML, so I have very little idea as to how I can improve the classification. Would other models yield the same incorrect labels?
Smartphone (please complete the following information):
Code
`
import React, { useEffect, useState } from 'react';
import { Image, StyleSheet, Alert } from 'react-native';
import * as tf from '@tensorflow/tfjs';
import { fetch, bundleResourceIO, decodeJpeg } from '@tensorflow/tfjs-react-native';
import * as jpeg from 'jpeg-js';
import * as FileSystem from "expo-file-system";
export default function CaptureResult({ navigation, route }) {
const [tfReady, setTfReady] = useState(false);
const [diseaseDetector, setDiseaseDetector] = useState("");
}`
The text was updated successfully, but these errors were encountered: