Comments (5)
@EmmaW8
In our implementation, we put this cutmix operation into forward
function of resnet.py
model.
For example, Feature CutMix after layer 1 is,
...
x = self.layer1(x)
# Feature CutMix
bbx1, bby1, bbx2, bby2 = rand_bbox(x.size(), lam)
x[:,:,bbx1:bbx2,bby1:bby2] = x[rand_index,:,bbx1:bbx2,bby1:bby2]
x = self.layer2(x)
...
From our experience, inplace=True
option may cause the runtime error, so try with inplace=False
.
Thanks!
from cutmix-pytorch.
Thank you for your reply.
Do you know more about how to implement inplace=False
.
Exactly, the runtime error is derived from the gradient calculation for the assignment operation.
from cutmix-pytorch.
@EmmaW8
In my case, it was worked when I change nn.ReLU(inplace=True)
to nn.ReLU(inplace=False)
.
I hope this would work. :)
from cutmix-pytorch.
Hello, thanks for your great job!
I have a question about Feature Cutmix: When training with Feature-Level Cutmix, how is the label transformation? Keeping it the same with Image-Level Cutmix or no transformation on the label?
from cutmix-pytorch.
@zzs1994
I have a question about Feature Cutmix: When training with Feature-Level Cutmix, how is the label transformation? Keeping it the same with Image-Level Cutmix or no transformation on the label?
We do it in the same way of image-level CutMix.
from cutmix-pytorch.
Related Issues (20)
- cutmix for segmentation HOT 1
- How could I use cutmix in object detection? HOT 1
- question about code in object detection HOT 2
- cutmix for segmentation HOT 1
- Could you please to figure out how to train on Pascal VOC? HOT 2
- About the probability of applying CutMix HOT 6
- Have you tried using feature-level CutMix and image-level CutMix at the same time? HOT 2
- Clarification about CutMix HOT 3
- Object Detection about
- CutMix for Image Captioning HOT 4
- Any COCO pretrained models Yet? HOT 1
- Reproducibility Issue again HOT 6
- Consistency between code and paper HOT 4
- About the hyper-parameter alpha of mixup HOT 5
- About the result of PyramidNet-110 baseline in the paper HOT 1
- Scripts for mentioned experiments HOT 4
- what should I change to use this concept on my data set HOT 3
- Clarification on in-between class samples results HOT 2
- Can Cutmix work well with CosFace?
- The difference between the enhanced image and the expected image is significant HOT 1
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 cutmix-pytorch.