Comments (3)
Thank you for pointing out this use case, I will add this flag in the next version of the library.
from clean-fid.
this feature is available in the current clean-fid version 0.1.17
Any transforms can be passed in through the flag custom_image_tranform
You can pass in a function that takes an image as an numpy array as input and returns the transformed image. For instance, the function below can be used to apply a crop to the images when computing the FID score.
def fn_crop(x): return x[60:-60, 60:-60, :]
This option is only applied when the FID is computed between two folders.
from clean-fid.
Feel free to re-open this issue if you run into any issues with this.
from clean-fid.
Related Issues (20)
- How to speed up the fid? HOT 2
- Compute FID from generator doesn't fully respect num_gen HOT 1
- Cannot compute fid for a generator, using images in fdir2. HOT 1
- How to use a Custom Dataset Statistics in a certain position? HOT 1
- Can KID be negative number HOT 3
- Uppercase JPEG extension ignored by get_folder_features HOT 2
- Typo in the compute_kid() HOT 1
- How to add pre-computed datasets statistics for new datasets, such as CelebA? HOT 1
- FID clip crashes when evaluated on `cpu` device HOT 1
- Why pinned requests==2.25.1? HOT 2
- Custom inception model requirement for 2D content.
- Precomputed statistics for MSCOCO HOT 1
- A better way to compute the FID
- cuda error? HOT 1
- device=torch.device('cpu') HOT 1
- Resize per channel reasons HOT 1
- General question HOT 1
- Images in a big numpy npy file rather than in a folder HOT 1
- Imaginary component with more than 2048 images HOT 5
- Can I implement this on video?
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 clean-fid.