Category "python"

Keras loss value significant jump

I am working on a simple neural network in Keras with Tensorflow. There is a significant jump in loss value from the last mini-batch of epoch L-1 to the first m

How to save feature values extracted from images in csv format using python?

I have extracted some features from images and now I want to save these values in csv file. I have searched some links like (When using OpenCV's 2D feature dete

How to get exact value of a token with Web3.py on PancakeSwap? Function getAmountsOut() returns a wrong value

Good day everyone, I'll try to be as clear as possible. I was trying to get the price of s**tcoins using web3.py and, after solving many problems, I'm stuck on

Pygame mask collisions not detected

I know there are several questions about collisions but I can't understand how to do it, the mask of the two objects are created correctly (if I show the two re

ModuleNotFoundError: No module named 'kivymd.uix.pickers'?

I'm XDoanh - A newbie in stackoverflow, I have a problem that need your answer: The current versions of kivy and kivymd that I am using are the latest versions

Open source html and css

Is HTML or CSS open source like PHP or Python? For example PHP itself: PHP source link in GITHUB

Complex interpolation for Isotopic data

I have another question, is there a package that interpolates precipitation data taking into account mountains and oceans? I have so far used Numpy and Basemap

Django filtering on a queryset not working

I am trying to add a filter on an existing queryset based on a condition but it doesn't work. This works queryset = None if self.is_instructor =

How to get the code returned by Cognito Hosted UI Autentication in Django?

I want to implement the Cognito Hosted UI for some users in my Django application. I have successfully been able to redirect the users to the desired url for au

Labmap.pbtxt file creation

I am trying to create my labelmap.pbtxt, but the file is not created. Here's the code Train_Annotations_Path = "C:/Users/JAAD_dataset/Workspace/annotations/Anno

Open 3D issues creating a 3D mesh

I am trying to create a 3D mesh in Open3D given a set of 3D points. My code is the following: pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dV

libssl not found by Python on Ubuntu 22.04

As the title says, I've just upgraded to Ubuntu 22.04 LTS and my previously working setup now says ImportError: libssl.so.1.1: cannot open shared object file: N

Deeplearning with Python Tensorflow,Keras

I am writing masters thesis about deeplearning and have a problem probably about library. Below is the error: AttributeError: module 'tensorflow.compat.v2' has

How is math.copysign(x, y) in Python useful?

I was going over the functions of the math module in Python and found the math.copysign (x,y) function. I want to know when someone would use this function. I

MQTT Subscriber to ThingsBoard broker in python

Situation: I have a python virtual sensor (a python program) that submits data via MQTT protocol to my device in ThingsBoard. I can visualize data on the dashbo

ByBit Exchange Spot Conditional Order

I'm trying to place a conditional order using pybit The purpose is to sell my current spot. The code is taken from the example from official website: from pybit

Do you understand why the Outputs of my YOLOV4 model has this shape? [duplicate]

I have a question. I trained a YOLOV4 model for face detection and when i tried to look at the output on Neutron i found that the Bounding Box

Print Diamond shape - Solution in Recursion [closed]

Each line has size 2n+2 The top line begins with n+2 spaces, followed by the uppercase 'o' character, followed by +2 spaces Each lines from

Add a new record for each missing second in a DataFrame with TimeStamp [duplicate]

Be the next Pandas DataFrame: | date | counter | |-------------------------------------|--------------

Import "webdriver_manager.chrome" could not be resolved when using Selenium in VS Code

I'm trying to use Selenium to test a web app, and my tests are running smoothly using webdriver-manager. I already pip installed the webdriver_manager and selen