text
stringlengths
0
23.7k
label
stringclasses
4 values
dataType
stringclasses
2 values
communityName
stringclasses
4 values
datetime
stringclasses
95 values
What is the issue?🙃
r/tensorflow
comment
r/tensorflow
2024-13-06
I'm using tensorflow to track the number of reps a user does a bicep curl. Every time I curl my bicep, instead of the counter incrementing once, it keeps counting until I stop doing a bicep curl. I would do one bicep curl, but the longer I hold it, the more it keeps counting. I'm not sure why this is happening. Can someone help. const webcamRef = useRef(null); const canvasRef = useRef(null); const [pose, setPose] = useState(null); const [counter, setCounter] = useState(0); const [stage, setStage] = useState('down'); const [angle, setAngle] = useState(0); const [canCount, setCanCount] = useState(true); const countReps = (pose) => { const confidenceThreshold = 0.35; // Set a confidence threshold const leftShoulder = pose.keypoints.find(point => point.part === 'leftShoulder' && point.score > confidenceThreshold); const leftElbow = pose.keypoints.find(point => point.part === 'leftElbow' && point.score > confidenceThreshold); const leftWrist = pose.keypoints.find(point => point.part === 'leftWrist' && point.score > confidenceThreshold); if (leftShoulder && leftElbow && leftWrist) { const angle = calculateAngle(leftShoulder.position, leftElbow.position, leftWrist.position); setAngle(angle); if (angle > 140) { setStage('down'); setCanCount(true); console.log('Stage changed to down'); } else if (angle < 40 && stage === 'down') { setCounter(prevCounter => prevCounter + 1); setCanCount(false); // Prevent counting until the next down setStage('up'); console.log('Stage changed to up'); } } else { console.log("Key points not detected or not confident enough"); } };
r/tensorflow
post
r/tensorflow
2024-14-06
I got chatGPT answer for you: The issue you're encountering is due to the state not updating synchronously, which can cause multiple updates within the same bicep curl. Additionally, there is no mechanism to prevent the counter from incrementing while holding the "up" position. Let's address this by using `useRef` to manage the `canCount` state more effectively. Here's an improved version of your code: 1. Use a `useRef` to manage the `canCount` state. 2. Ensure the counter only increments once per complete curl. ```javascript import React, { useRef, useState, useEffect } from 'react'; const App = () => { const webcamRef = useRef(null); const canvasRef = useRef(null); const [pose, setPose] = useState(null); const [counter, setCounter] = useState(0); const [stage, setStage] = useState('down'); const [angle, setAngle] = useState(0); const canCountRef = useRef(true); const countReps = (pose) => { const confidenceThreshold = 0.35; // Set a confidence threshold const leftShoulder = pose.keypoints.find(point => point.part === 'leftShoulder' && point.score > confidenceThreshold); const leftElbow = pose.keypoints.find(point => point.part === 'leftElbow' && point.score > confidenceThreshold); const leftWrist = pose.keypoints.find(point => point.part === 'leftWrist' && point.score > confidenceThreshold); if (leftShoulder && leftElbow && leftWrist) { const angle = calculateAngle(leftShoulder.position, leftElbow.position, leftWrist.position); setAngle(angle); if (angle > 140) { setStage('down'); canCountRef.current = true; console.log('Stage changed to down'); } else if (angle < 40 && stage === 'down' && canCountRef.current) { setCounter(prevCounter => prevCounter + 1); canCountRef.current = false; // Prevent counting until the next down setStage('up'); console.log('Stage changed to up'); } } else { console.log("Key points not detected or not confident enough"); } }; useEffect(() => { // Add code to initialize the webcam and start the pose detection // When a new pose is detected, call countReps with the detected pose }, []); return ( <div> <video ref={webcamRef} style={{ display: 'none' }} /> <canvas ref={canvasRef} /> <div>Reps: {counter}</div> </div> ); }; const calculateAngle = (a, b, c) => { const radians = Math.atan2(c.y - b.y, c.x - b.x) - Math.atan2(a.y - b.y, a.x - b.x); let angle = Math.abs(radians * 180.0 / Math.PI); if (angle > 180.0) { angle = 360 - angle; } return angle; }; export default App; ``` ### Key Changes: 1. **Ref for `canCount`**: By using `useRef` for `canCount`, we avoid the asynchronous state update issues, ensuring `canCount` is correctly managed between frames. 2. **Check for `canCount`**: Only increment the counter if `canCount` is true, and set it to false immediately after incrementing to prevent further increments until the next complete curl. Make sure to initialize the webcam and pose detection properly in the `useEffect` hook. This code assumes you have a pose detection setup that calls `countReps` with the detected pose. If you need help with setting up the webcam and pose detection, please provide more details about your current setup.
r/tensorflow
comment
r/tensorflow
2024-15-06
I tried that but it didn't work. Here is my repo: [https://github.com/laura-nguyen/flexifit-ai/blob/main/src/components/Test/Test.jsx](https://github.com/laura-nguyen/flexifit-ai/blob/main/src/components/Test/Test.jsx)
r/tensorflow
comment
r/tensorflow
2024-15-06
NEVER MIND!! I SOLVED IT!!! THANKSSSS <3
r/tensorflow
comment
r/tensorflow
2024-15-06
I've been following the instructions here: [https://www.tensorflow.org/install/pip#windows-wsl2](https://www.tensorflow.org/install/pip#windows-wsl2) but when I copy/paste `python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"` `python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"` I get `E external/local_xla/xla/stream_executor/cuda/cuda_driver.cc:282] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected` `nvidia-smi` outputs `NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.` but if I wrong the command in a windows command terminal, it works fine. `+-----------------------------------------------------------------------------------------+` `| NVIDIA-SMI 555.99 Driver Version: 555.99 CUDA Version: 12.5 |` `|-----------------------------------------+------------------------+----------------------+` `| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |` `| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |` `| | | MIG M. |` `|=========================================+========================+======================|` `| 0 NVIDIA GeForce RTX 3070 ... WDDM | 00000000:01:00.0 Off | N/A |` `| N/A 41C P0 29W / 115W | 0MiB / 8192MiB | 0% Default |` `| | | N/A |` `+-----------------------------------------+------------------------+----------------------+` `+-----------------------------------------------------------------------------------------+` `| Processes: |` `| GPU GI CI PID Type Process name GPU Memory |` `| ID ID Usage |` `|=========================================================================================|` `| No running processes found |` `+-----------------------------------------------------------------------------------------+` It seems to me that the drivers are correct and working, but the WSL2 environment is unable to access it. I'm not sure where to go from here.
r/tensorflow
post
r/tensorflow
2024-14-06
Did you install CUDA Toolkit and CuDNN?
r/tensorflow
comment
r/tensorflow
2024-14-06
I installed CUDA Toolkit using these instructions: wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda-repo-wsl-ubuntu-12-5-local_12.5.0-1_amd64.deb sudo dpkg -i cuda-repo-wsl-ubuntu-12-5-local_12.5.0-1_amd64.deb sudo cp /var/cuda-repo-wsl-ubuntu-12-5-local/cuda-*-keyring.gpg /usr/share/keyrings/ sudo apt-get update sudo apt-get -y install cuda-toolkit-12-5 I then ran: sudo apt-key del 7fa2af80sudo apt-key del 7fa2af80 I haven't installed CuDNN yet as I figured it was a step for afterwards.
r/tensorflow
comment
r/tensorflow
2024-14-06
I had this issue before. Try: sudo apt-get -y uninstall cuda-toolkit-12-5 sudo apt-get -y install cuda-12-5 This won’t install driver that comes with the toolkit which may conflict with windows driver.
r/tensorflow
comment
r/tensorflow
2024-14-06
unfortunately the output for nvidia-smi is the same. WSL2 just can't seem to see the driver
r/tensorflow
comment
r/tensorflow
2024-14-06
I find myself in yet another predicament; I’ve been trying to tweak a model as test it accordingly, but the amount of time it takes to run the epochs is horrid. I did look into running the tensor code through my GPU but it wasn’t compatible with my condas venv. I also tried google colab, and even paid for the 100 GPU tier, but found myself running out in under a day. (The times were sweet while it lasted though, like 3-4 second an epoch) How do people without a nice PC manage to train their models and not perish from old age?
r/tensorflow
post
r/tensorflow
2024-15-06
I don't think you can do much without a solid GPU.
r/tensorflow
comment
r/tensorflow
2024-15-06
Nvidea wins, 4090 here I come 😞
r/tensorflow
comment
r/tensorflow
2024-15-06
It must be a problem with your code or model size. What are you trying to train? I am also not sure if Google Colab is the best here if you time out („running out“).
r/tensorflow
comment
r/tensorflow
2024-15-06
Yeaaaa this sounds more like a coding issue. I’m sure it “works,” but my bet is OP’s script is very inefficient if he’s blowing through online resources like that.
r/tensorflow
comment
r/tensorflow
2024-15-06
[https://imgur.com/a/IEEcgVi](https://imgur.com/a/IEEcgVi) The above link is the general gist of the code, I’ve tried running it with more epochs at a lower learning rate, adding and removing convolutional layers, etc. I don’t think the code is too inefficient, but to be fair I did have to upload a 25000 image dataset, and ran the model at 300+ epochs multiple times.
r/tensorflow
comment
r/tensorflow
2024-16-06
I’m trying to train a CNN to tell the difference between a cat and a dog. I did make a previous post about being unable to get past 87% accuracy, which in turn spurred my journey to find ways to run the code faster.
r/tensorflow
comment
r/tensorflow
2024-16-06
I’m using the Nvidia container toolkit because I couldn’t get cuda gpu support to run locally. So I’ve got docker installed and the tensorflow image. But I’m getting an error with the driver configuration. For some reason the tf docker image is looking for Nvidia 545 drivers but my desktop is running 535 and I can’t install 545. Is there a catalog or something that I can look through to find a tensorflow image that uses the 535 drivers?
r/tensorflow
post
r/tensorflow
2024-16-06
there is a tab called scalar tab,switch to it ,click download data and that allows you to download the plots as svg.
r/tensorflow
comment
r/tensorflow
2024-03-06
hey do you know how i can setup gpu on my windows system in a conda environment tensorflow. i have gone through the tensorflow docs and they seem to have stopped giving out the newer versions compatibility with the CUDA and CUDnn i have been using google collab but open cv seems to not work and i want to use my nvidia geforce rtx 3060
r/tensorflow
comment
r/tensorflow
2023-30-07
hello, sorry for the delayed response, this was for my batchelor's project, i ended up taking a project from the example repos given by tensorflow, translating it to java, then building upon it
r/tensorflow
comment
r/tensorflow
2023-25-07
no worries! i actually ended up doing something similar too, the example repos were super helpful :)
r/tensorflow
comment
r/tensorflow
2023-06-08
Did you eventually get any answer?
r/tensorflow
comment
r/tensorflow
2023-25-07
working on WSL is absolutely a dread. Everything is slow and unstable. Screen resolution sucks hard if you have a good display. Good luck spending hours to launch Spyder for whatever technical deficiency WSL is incapable to fix.
r/tensorflow
comment
r/tensorflow
2023-21-08
Nice job. Cramer always says he is here to educate and entertain. As a teacher he gets an F. As an entertainer I will give him a C.
r/wallstreetbets
comment
r/wallstreetbets
2024-22-05
2024 Nvidia Dell OneMind in November [https://www.nvidia.com/en-us/events/smart-city-expo-world-congress/](https://www.nvidia.com/en-us/events/smart-city-expo-world-congress/) You go to the link, scroll down to Nvidia partners and click on Dell Technologies Hall 1, C10 Featuring edge Al solutions with NVIDIA Jetson and Metropolis Discover intelligent video analytics in action including demos in airports by Ipsotek, in stadiums & arenas by IntelexVision, and in public transport by AICUDA and Wobcom. Other demos cover city-as-a-service by Aveya Schneider, IOC & digital twin by Augment City and OneMind, plus Dell's new NativeEdge operations software platform. OneMind is owned by Affluence Corp/Durham Black Inc stock ticker AFFU a 1 cent pink stock Durham Black Inc just merged into AFFU and plans on doing a bunch of mergers, acquisitions and partnerships to become a market leader. The longer term goal will be to get to Nasdaq or NYSE but 1st i see it going to OTCQB in the future. But at 1 cent i am holding for long term to see what happens
r/wallstreetbets
comment
r/wallstreetbets
2024-09-06
ZIM, GOGL, SBLK. Zim just brought back it dividend too, so thats nice. 
r/wallstreetbets
comment
r/wallstreetbets
2024-02-06
It’s been a year and I’ve been proven right. No recession and inflation continues to go lower. Oh, and I’m still adding to my net worth.
r/wallstreetbets
comment
r/wallstreetbets
2024-10-06
Glad I was right and you were wrong.
r/wallstreetbets
comment
r/wallstreetbets
2024-10-06
From what I remember, I was comparing MSTR IV to bitcoin IV
r/wallstreetbets
comment
r/wallstreetbets
2024-15-06
are we still shorting?
r/wallstreetbets
comment
r/wallstreetbets
2024-01-06
Never
r/wallstreetbets
comment
r/wallstreetbets
2024-03-06
Just coming back to this after they announce 7.5b more in funding. If you look at coreweaves case studies they have no real customer base. Their senior leadership has no background in tech or AI. They have one software engineer and yet a good chunk of accountants which id be curious in seeing the family trees of. The math on. Nvidia’s gm is ludicrous and there are costs hidden somewhere
r/wallstreetbets
comment
r/wallstreetbets
2024-23-05
Horrible investment
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
Can you do an update post for your current position?
r/wallstreetbets
comment
r/wallstreetbets
2024-07-06
here's your reminder to look at your prediction
r/wallstreetbets
comment
r/wallstreetbets
2024-16-06
My guy.. I just drove the r1t and then I tesla... I enjoyed the r1t more.
r/wallstreetbets
comment
r/wallstreetbets
2024-02-06
hello
r/wallstreetbets
comment
r/wallstreetbets
2024-02-06
Take Two the Moon
r/wallstreetbets
comment
r/wallstreetbets
2024-01-06
Good call. You will at least double your money in the next few years. Just don't puss out and sell for a loss if it backs off a while.
r/wallstreetbets
comment
r/wallstreetbets
2024-31-05
I wish I can do the same to my house in Los Angeles.
r/wallstreetbets
comment
r/wallstreetbets
2024-01-06
![img](emote|t5_2th52|4271)![img](emote|t5_2th52|4271)![img](emote|t5_2th52|4271)![img](emote|t5_2th52|4271)![img](emote|t5_2th52|4271)
r/wallstreetbets
comment
r/wallstreetbets
2024-11-06
How did it go??
r/wallstreetbets
comment
r/wallstreetbets
2024-09-06
Express died.
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
This is all highly reasonable if it wasn’t for the fact that most people on weight loss drugs were looking for easy way out to lose weight
r/wallstreetbets
comment
r/wallstreetbets
2024-16-06
fast forward 5 months and do you still believe this?
r/wallstreetbets
comment
r/wallstreetbets
2024-14-06
This aged well
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
Thanks again for playing and for all the nay layers out there in the world!
r/wallstreetbets
comment
r/wallstreetbets
2024-06-06
Inverse wallstreetbets is so undefeated.
r/wallstreetbets
comment
r/wallstreetbets
2024-21-05
This aged nicely!
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
$CVNA
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
C'mon u/dafreshprints why u gotta leave this fellow ape hanging? I'm also curious about getting LEAPS. Thoughts OP?
r/wallstreetbets
comment
r/wallstreetbets
2024-14-06
I ended up buying calls here. Cashed them out around 170 and bought 20 shares. I just bought some more calls 250 for September. I have extreme long-term confidence in this company and its dedication to ARM for the next gen computers. It is risky to get in now I admit, but I think it still have a long ways to go in this current bull run. Im eyeing 280-300 at the moment. Long term i.e., 5 years this stock is a banger and you should go balls deep
r/wallstreetbets
comment
r/wallstreetbets
2024-04-06
Why did SHE need to lose weight for her DAUGHTERS wedding. Weird
r/wallstreetbets
comment
r/wallstreetbets
2024-21-05
Seriously. Dumb people continue to be dumb. Like bro you overdosed. No wonder you died?
r/wallstreetbets
comment
r/wallstreetbets
2024-21-05
She overdosed. Just come out and say it? Why can’t people follow prescription instructions
r/wallstreetbets
comment
r/wallstreetbets
2024-21-05
He’s a new hire. They will send him for wiper fluid next.
r/wallstreetbets
comment
r/wallstreetbets
2024-09-06
I don’t even think my broker would let me
r/wallstreetbets
comment
r/wallstreetbets
2024-31-05
🫡🥲
r/wallstreetbets
comment
r/wallstreetbets
2024-02-06
I think you made money!
r/wallstreetbets
comment
r/wallstreetbets
2024-22-05
*hug*
r/wallstreetbets
comment
r/wallstreetbets
2024-01-06
yes
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
Btc is a coin that we all love. Nothing will happen to him easily, but we also need other investment tools. For example, the price of $Prom Coin has been very good lately, I recommend you to check it out.😍
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
as of today Paul Pickle has been fired.
r/wallstreetbets
comment
r/wallstreetbets
2024-07-06
AAPL $216!
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
Hahah ahhh man. This happened with Exxon once and I had to drink a quart of Quaker State. This is definitely something historic!
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
Would you eat a b200 tensor core if Nvidia becomes bigger than Microsoft?
r/wallstreetbets
comment
r/wallstreetbets
2024-06-06
This posts age well. Did OP buy AMD instead of NVDA lol?
r/wallstreetbets
comment
r/wallstreetbets
2024-02-06
One word - CUDA
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
Sir
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
In a week they will! :)
r/wallstreetbets
comment
r/wallstreetbets
2024-30-05
Another grifter trying to offload their btc by selling pipe dreams.
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
Here we areeeeee nice one remind me!
r/wallstreetbets
comment
r/wallstreetbets
2024-22-05
Oh man I would sell 25 shares minimum at 105. Take a huge profit and still be invested
r/wallstreetbets
comment
r/wallstreetbets
2024-28-05
It's dipped pretty well right now, have you bought in or are you waiting for it to fall even more?
r/wallstreetbets
comment
r/wallstreetbets
2024-17-06
u/AllShortTheRedditIPO LMFAOOOOO 🤣🤣 you still alive? Let’s check back again, in later. RemindMe! 1 year
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
Where is it today? The amount of money that company has lost is staggering, I wonder if they are inflating losses to counterbalance profits somewhere else.
r/wallstreetbets
comment
r/wallstreetbets
2024-30-05
May 30, 2024 DJT is at $51.
r/wallstreetbets
comment
r/wallstreetbets
2024-30-05
Cool. So safe for you is \~5% account growth per week?
r/wallstreetbets
comment
r/wallstreetbets
2024-08-06
Hey, rewards are back!
r/wallstreetbets
comment
r/wallstreetbets
2024-05-06
Good shit my man been holding too
r/wallstreetbets
comment
r/wallstreetbets
2024-29-05
Why is JPM down 4%?
r/wallstreetbets
comment
r/wallstreetbets
2024-20-05
JCI and CARR are starting to make me nervous. Not sure what to do with them
r/wallstreetbets
comment
r/wallstreetbets
2024-21-05
I missed that PANW dip. I sold out at the top yesterday
r/wallstreetbets
comment
r/wallstreetbets
2024-22-05
What caused the sell off today?
r/wallstreetbets
comment
r/wallstreetbets
2024-23-05
UPS has been selling of for a week
r/wallstreetbets
comment
r/wallstreetbets
2024-23-05
This is a AI generated Bull Market!
r/wallstreetbets
comment
r/wallstreetbets
2024-23-05
Market was waiting on NVDA. The king 👑 of AI and all cult stocks
r/wallstreetbets
comment
r/wallstreetbets
2024-23-05
Sell in May and go away would be a gift.
r/wallstreetbets
comment
r/wallstreetbets
2024-25-05
Farmer Jim bought more NVDA
r/wallstreetbets
comment
r/wallstreetbets
2024-25-05
Seems to the top choice
r/wallstreetbets
comment
r/wallstreetbets
2024-25-05
DIP buyers are back for NOW!
r/wallstreetbets
comment
r/wallstreetbets
2024-25-05
Apparently it depends on the company.
r/wallstreetbets
comment
r/wallstreetbets
2024-25-05
The market is near ATH, so what is your Fear Guage meeting saying.
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
I missed out on a lot going back to work
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
When is the last time the words Bear Market was mentioned on CNBC?
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
I’ve made a lot of quick trades during the day, jump in and out of stocks. Making $100-$400 most times
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
Nice
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
I don’t know or really care, he might be off his medications
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05
The unwashed masses.
r/wallstreetbets
comment
r/wallstreetbets
2024-26-05