Comments (2)
This is a bug which I also encounter. Fix it by editting the code in Prepare_image.py
as below:
def adaptive_resize(self, img):
"""
Args:
img (PIL Image): Image to be scaled.
Returns:
PIL Image: Rescaled image.
"""
h, w = img.size
if h < self.size or w < self.size:
img = transforms.ToTensor()(img)
print('if img.size=', img.size(), type(img))
return img
else:
img = transforms.ToTensor()(transforms.Resize(self.size, self.interpolation)(img))
print('else img.size=', img.size(), type(img))
return img
from spaq.
This is a bug which I also encounter. Fix it by editting the code in
Prepare_image.py
as below:def adaptive_resize(self, img): """ Args: img (PIL Image): Image to be scaled. Returns: PIL Image: Rescaled image. """ h, w = img.size if h < self.size or w < self.size: img = transforms.ToTensor()(img) print('if img.size=', img.size(), type(img)) return img else: img = transforms.ToTensor()(transforms.Resize(self.size, self.interpolation)(img)) print('else img.size=', img.size(), type(img)) return img
Could share the BL_release.pt file with me?Thx. My e-mail: [email protected]
from spaq.
Related Issues (20)
- Can not handle image with size smaller then 512? HOT 1
- 能提供下训练代码吗? HOT 1
- database is synthetic or real ? HOT 1
- A question about image process HOT 1
- BL模型有问题!!! HOT 1
- MT-A推理 HOT 1
- Database Access HOT 1
- Scenes shot with many devices HOT 1
- Sharing raw subjective ratings (or MOS + variance per image) HOT 5
- Score Error of the pretrain model, which I doubt the experiments results. HOT 1
- 关于下载的内容该如何使用的问题
- 请问有人知道这种情况该如何解决吗
- 推理代码中不包含model.eval()? HOT 1
- Could you put the checkpoint file(BL_release.pt) to Baidu Yun?3Q HOT 1
- 关于模型保存的问题 HOT 2
- List of test images
- where are the annotations for these images HOT 1
- Results in MSU Video Quality Metrics Benchmark HOT 1
- can not download model by the given url 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 spaq.