Comments (9)
Hi @Henery1
This looks like a mismatch between torchvision
versions.
It was likely caused by an issue in installation instructions.
I'll look into this!
from ai-thermometer.
What version of torch
and torchvision
are you using?
You can check that by inspecting the output of the following commands:
pip3 show torchvision
pip3 show torch
from ai-thermometer.
Hi @Henery1 What version of torch , torchvision and python are you using? I'm having a problem with the version
from ai-thermometer.
Hi @tomek-l ! First of all Thanks you very much for your kindly respond. I used for thermal-view with purethermal-2 break out board and FLIR Lepton 3.5 and pi-camera v-2.1 for RGB . Please Look at the torch and torchvision below:
For Torch
Name: torch
Version: 1.8.0
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: [email protected]
License: BSD-3
Location: /home/thermal/.local/lib/python3.6/site-packages
Requires: numpy, dataclasses, typing-extensions
For Torchvision
Name: torchvision
Version: 0.2.2.post3
Summary: image and video datasets and models for torch deep learning
Home-page: https://github.com/pytorch/vision
Author: PyTorch Core Team
Author-email: [email protected]
License: BSD
Location: /home/thermal/.local/lib/python3.6/site-packages
Requires: six, pillow, numpy, torch
yours sincerely
Henery T
from ai-thermometer.
Hi @tomek-l
I got that kind of error. Please guide me to get RGB and IR frame display.
(488) isPipelinePlaying OpenCV | GStreamer warning: unable to query pipeline state
[ WARN:1] global /tmp/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1761) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module nvarguscamerasrc0 reported: TIMEOUT
GST_ARGUS: Cleaning up
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/thermal/ai-thermometer/rgb/rgb_thread.py", line 38, in run
frame_small = cv2.resize(self._frame, (400, 300))
cv2.error: OpenCV(4.4.0) /tmp/build_opencv/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
(960, 0)
Waiting for RGB frames
Waiting for RGB frames
Waiting for RGB frames
Waiting for RGB frames
Waiting for RGB frames
Waiting for RGB frames
from ai-thermometer.
Hi @Henery1 ,
I'm glad you were able push it forward. Te second error is likely related to the gstreamer pipeline for RGB camera not having set up successfully.
- See if you can display camera 0 on the screen:
gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! 'video/x-raw(memory:NVMM),width=3264, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=2 ! 'video/x-raw,width=960, height=720' ! nvvidconv ! nvegltransform ! nveglglessink -e
(or camera 1):
gst-launch-1.0 nvarguscamerasrc sensor_id=1 ! 'video/x-raw(memory:NVMM),width=3264, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=2 ! 'video/x-raw,width=960, height=720' ! nvvidconv ! nvegltransform ! nveglglessink -e
- If these commands don't succeed, give this a try:
sudo systemctl restart nvargus-daemon
from ai-thermometer.
Hi @tomek-l Everything is fine now and trying to upgrade to your program. At first I got an error in camera and tried to check the camera with this command ls /dev/video0. Anything have changed and got an error again, then try to install the video 4 linux utils with this command (sudo apt-get install v4l-utils) and then check video list (v4l2-ctl --list-devices). The output was fine. Thanks a lot for your kindly respond.
from ai-thermometer.
Hi Tomek-I!!! I want to get the Tavg data. But I don't know how can i get this Tavg data in your program. Where can i find the data set in your program? Thanks a lot!!! Waiting for your kindly reply.
from ai-thermometer.
Hi @Henery1 What version of torch , torchvision and python are you using? I'm having a problem with the version
I used Torch version 1.8.0 .
from ai-thermometer.
Related Issues (20)
- Using an USB camera HOT 7
- Torchvision issue fix
- How do you add Fahrenheit to your output?
- How to work without hardware component
- Flip Images 180 Degress HOT 2
- Hi there, how do I change both images like 180 degress? HOT 4
- How to execute FFC HOT 1
- Camera Issue HOT 9
- Low Memory Warning HOT 3
- Capture of pixel temperature with Lepton 3.5 camera HOT 1
- USB camera issue HOT 12
- Can't load an ONNX model in SSD Detector HOT 7
- How to get started HOT 6
- Webcam+Lepton3.5 using pure thermal mini
- Program/camera feed over http HOT 2
- .STL or .STEP needed to print enclosure..how to export? HOT 3
- Another thermal sensor
- uvc_open error {res}
- uvc_open error -3
- Not an issue but a way to better orient the cameras
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-thermometer.