I need to load the CelebA dataset for a Python (Pytorch) implementation of the following paper: https://arxiv.org/pdf/1908.10578.pdf The original code for loadi
How do I shuffle the elements of tf.data.Dataset within a certain range. Having an input array, with shape = (10,), in the first 5 elements would be shuffled wi
I'm trying to connect to a Postgres database with SQLAlchemy. I've installed psycopg2. However, I get the error sqlalchemy.exc.NoSuchModuleError: Can't load plu
I'm using SQLAlchemy and trying to use the sessionmaker as a context manager for my transaction (following the documentation): Session = sessionmaker(some_engin
I was trying to load the checkpoints weights to the trained model and got the following error message. Any idea how to solve it? File "/src/trainer/loaders.
I am working on a seq2seq machine learning problem with Conv1D and LSTM, to do this I must produce a tensor input of the shape samples, timesteps, features. Asi
Can anybody help me with some command prompt details/ script detail/python programming on how to get file details? Scenario: Folder contains many subfolders --
I am editing a file in VS code. VS code gives the following error: Import "selenium" could not be resolved Pylance (reportMissingImports). This is the code from
from PIL import Image, ImageSequence import PIL GIF_PATH = Image.open(r"C:\Users\me_\My\Filw\Path.gif") IMAGE_PATH = Image.open(r"base.png") frames = [] for fr
I am having trouble dynamically binning my dataset for further calculation. My goal is to have specific bin/labels for each individual row in my dataframe, base
My porpouse is to automate the aquisition of data from a website. I have my python scripts to scrape tables and i can store it as a dataframe or in a csv,xlsx f
ERROR: Command errored out with exit status 1: command: 'C:\Program Files\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0]
I have an function called "value" that makes heavy calculation... The result of the function is always the same if the dataset is not changed for the identifier
I'm building a chain classifier for a multiclass problem that uses Keras binary Classifier model in a chain. I have 17 labels as classification target and datas
I have an issue with this code: from netmiko import ConnectHandler from re import search lsite=[] try: NetworkDevice = { "host" : "ip", "u
I'm trying to make my discord bot reporoduce audio from a link @client.command() async def play(ctx, url): #...code but it seems that I need to have install
I made wordle (using tkinter) in a previous project of mine, and now instead of using one entry to get the guess, I want 5 entries linked together that work lik
I'm trying to add a chessboard to an image in order to find the distortion coefficients. However when I use the function addWeighted() the black areas of my che
Error while installing hyperscan on windows. Tried updated PIP and installed wheel but still no luck. ERROR: Could not build wheels for hyperscan, which is requ
I'm programming a chemistry calculator that takes the element name and turns it into the value of its charge. So hydrogen is equal to 1 but I want to ask for th