Quantcast
Browsing all 13921 articles
Browse latest View live

LLaMa2 fine tune on m1 mac with llama.cpp

device: m1 mac,os: sonomalang : python,Editor: vscode, ipynbi have a question for attach the lora module to the llama model. (for QLoRa )Before attaching the module, I applied quantization to the model...

View Article


Distinguishing between the landmarks (left hand and right hand)

I have been trying to distinguish between the landmark with the same number for the left-hand and right-hand in mediapipe and opencv. The problem is that we have 20 id numbers but for both hands we...

View Article


How can I detect double click events in matplotlib?

import matplotlib.pyplot as pltdef onclick(event): print(event.button)fig = plt.figure()connection_id = fig.canvas.mpl_connect('button_press_event', onclick)plt.show()With this code, the problem is...

View Article

:( scourgify.py cleans short CSV file || :| scourgify.py cleans long CSV file

I am trying to solve CS50's scourgify problem. In the file called before.csv there are two columns name, house respectively. The task is to split name column into two independent columns namely first...

View Article

Handle dependency in python file generated by SWIG

I have a swig generated python file like this :from sys import version_info as _swig_python_version_infoif _swig_python_version_info < (2, 7, 0): raise RuntimeError("Python 2.7 or later required")#...

View Article


Python Databricks Dataframe join filtering records unexpectedly

In Azure Databricks I have the following tables:[File_Processing_History]Id bigintClient varchar(255)FileName varchar(255)FileType varchar(3)EventType varchar(100)EventContext varchar(255)Checksum...

View Article

Issue while trying to open a Pyinstaller made .exe of a project that uses...

Essentially, I'm endeavoring to develop an application using Tkinter GUI and several other libraries. The aim is to eventually publish the app on GitHub, allowing my classmates to download and test it,...

View Article

Memory leakage in python?

I have python scripts that calls a function foo that performs some operations that uses say 10GB of memory and returns the small object res to the main program. After printing res I delete the res, but...

View Article


Py-Cord function not responding when accessing permissions

This is the strangest problem I have ever had with this library. My code works fine, but this command (below) does not respond with anything. However, the program does not output any...

View Article


pip install private package 403 azure databricks

I'm trying to install a package from a private jfrog artifactory repo using the following commandpip install -i https://user:pass@com.jfrog.io/artifactory/api/pypi/private-pypi/simple --trusted-host...

View Article

Joblib not unpickling the model

This is the below error I am getting when I am running my server code.File "server.py", line 19, in <module> util.load_saved_artifacts() File "/Users/sivapathasundaramjanu/Downloads/untitled...

View Article

Flask App works with Curl but not with HTTP request

Situation: This is my first full-stack project, I'm using HTML/CSS/Bootstrap with Python/Flask/SQLite for a simple rental booking webapp; home page is complete, and includes among other things a simple...

View Article

Python Flask populate a text box on a table row selection

I am very new to python/flask, and i am trying to develop an app where a user can change the of points to a rule to see the effect. The user enters a new value for the points an hits recalculate Table...

View Article


Subtracting list values from previous list values

If I have a list of values like this:a=[5,4,3,2,1]How would I then go about subtracting a value from the one before it and storing it in a new list? In this example, the new list would look...

View Article

how to build a vae without reshape error?

I build a VAE following https://blog.tensorflow.org/2019/03/variational-autoencoders-with.htmlPROBLEM: I thick the problem is in the decoder when I want to reshape the latent Distribution i face this...

View Article


Implement a function that works the same as str.split method (without using...

I tried a code that works for some of the splits. But it keeps failing on the majority of asserts. Can u plese help?from typing import Listdef split(data: str, sep=None, maxsplit=-1): empty_str = ""...

View Article

Revolution of a curve around the y axis in python

So i have the curve y=1-(x-1)**2 with x being element of [1,2] and i want to plot the surface of revolution of this line around the y axis. Im kinda stuck and didnt much helpful info anywhere.import...

View Article


Struggling with developing code for an online learning using river library...

I have split the data but struggling to write the code for training the model and saving the model in particular directory using pickle for future use. Any suggestions on how to proceed?# Splitting...

View Article

Calculate discrete logarithm

Given positive integers b, c, m where (b < m) is True it is to find a positive integer e such that(b**e % m == c) is Truewhere ** is exponentiation (e.g. in Ruby, Python or ^ in some other...

View Article

No Output From cProfile

I'm trying to profile an application written using PySide and OpenCV and am getting strange behaviour with the profiler. I run my code using the following line:python -m cProfile -o output.file...

View Article
Browsing all 13921 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>