Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
2 answers
149 views

Class for validating code in different Conda environments with PyTorch

I wrote the Validator class. In the project, the presented code is located at the path ".../validator/init.py". It is needed for testing code in different virtual Conda environments, in the ...
Sindik's user avatar
  • 41
3 votes
1 answer
80 views

Follow up - Deep Learning Project for House Plant Identification on Kaggle Notebook

The code is based on feedback that I received from my previous question regarding this project. I've developed the initial code for a deep learning project focused on identifying house plants within a ...
Steve Austin's user avatar
4 votes
2 answers
57 views

Kaggle Notebook for Identifying House Plants

I'm working on a personal deep learning project on identifying house plants. I have developed the initial code in Kaggle Notebook. I'll later transform it into a Flask app. I have just finished the ...
Steve Austin's user avatar
2 votes
1 answer
75 views

I have a pytorch module that takes in some parameters and predicts the difference between one of it inputs and the target

One instance of the following module uses up to almost 75% of my vram. So, I was wondering how I could improve that without slowing down runtime too much. The code is below: ...
Jayson Meribe's user avatar
3 votes
2 answers
100 views

Video Frame-by-Frame Deraining with MFDNet

After checking the repository of MFDNet, single image rain streaks removal with the provided model is given in test.py. I am trying to modify the code to process frame-by-frame rain streaks removal in ...
JimmyHu's user avatar
  • 7,076
6 votes
1 answer
110 views

Transformer based on pytorch nn.Transformer to predict protein secondary structure

I'm working on a transformer as my final project in high school. Since I'm kinda new to ML (3 months of experience), I need someone to check my implementation, if I made any mistakes or bugs that I ...
BadCoder's user avatar
4 votes
1 answer
168 views

String art program in Python using PyTorch

...
flakpm's user avatar
  • 77
3 votes
1 answer
111 views

Pytorch code running slow for Deep Q learning (Reinforcement Learning)

I'm a new student in reinforcement learning. Below is the code that I wrote for deep Q learning: ...
Jahid Chowdhury Choton's user avatar
2 votes
1 answer
48 views

One-layer linear neural network to solve a regression problem in PyTorch

Good morning everyone, I am trying to figure out how deep learning works. My approach is mainly theoretical but I have decided to code a few deep learning projects to get a better feel of the kind of ...
francescoriccardocrescenzi's user avatar
1 vote
0 answers
71 views

Convolution to reduce popcorn noise in black and white video

I have a black & white video as a tensor with the shape [Time, Width, Height] with popcorn noise and I would like to reduce the noise by naively convolving along the time dimension. Using a ...
Seanny123's user avatar
  • 1,599
3 votes
2 answers
167 views

Neural network that determines the gender of a word

I wrote a neural network in Python using PyTorch which determines the gender of a word in Russian. As a training set: a file containing a word and a number from 0 to 2 (0-masculine, 1-feminine and 2-...
user avatar
2 votes
0 answers
101 views

Higher order derivatives with functorch

I'm computing higher order derivatives using nested jacobian from pytorch/functorch. $$f(x, y, z, \dots) : R^{m_x} \times R^{m_y}...
I.M.'s user avatar
  • 121
1 vote
0 answers
172 views

Binary classification with pytorch

I wrote a simple neural network binary classification algorithm using Pytorch. It uses the dataset from https://www.kaggle.com/pritsheta/heart-attack, which consists of a table with 300 rows and 14 ...
user3053216's user avatar
1 vote
1 answer
650 views

Set min value of each row of a tensor to zero without using explicit loops

Here's the problem. Return a copy of x, where the minimum value along each row has been set to 0. For example, if x is: ...
Ryan's user avatar
  • 13
2 votes
1 answer
107 views

Loss function in python is a bit cumbersome

Here is a python function I have for a neural network I have implemented. I feel it become a bit cumbersome. The intention is to weight positive labels in channels ...
El_Loco's user avatar
  • 169

15 30 50 per page