Comments (5)
(1) The released code has been validated and did not raise any errors. (2) The provided information is unable to pinpoint the error. It is suggested to run the code step by step to identify the bug.
from libcom.
(1) The released code has been validated and did not raise any errors. (2) The provided information is unable to pinpoint the error. It is suggested to run the code step by step to identify the bug.
During debugging, I found the error raised from './libcom/image_harmonization/source/functions.py' line 489
class TrilinearInterpolationFunction(torch.autograd.Function):
@staticmethod
def forward(ctx, lut, x):
x = x.contiguous()
output = x.new(x.size())
dim = lut.size()[-1]
shift = dim ** 3
binsize = 1.000001 / (dim-1)
W = x.size(2)
H = x.size(3)
# batch = x.size(0)
batch = x.size(1)
assert 1 == trilinear.forward(lut,
x,
output,
dim,
shift,
binsize,
W,
H,
batch) # <======= Bug came from here
int_package = torch.IntTensor([dim, shift, W, H, batch])
I followed the solution from HuiZeng/Image-Adaptive-3DLUT#70 , but still no work.
Still needing your help!
from libcom.
If your PyTorch version is not 1.10.1, please try installing this specific version of PyTorch and then reinstall the libcom library by running python setup.py install
.
from libcom.
If your PyTorch version is not 1.10.1, please try installing this specific version of PyTorch and then reinstall the libcom library by running
python setup.py install
.
Thx for reply. I did exactly follow the installation instruction . And the "torch-related" libraries are:
open-clip-torch 2.7.0
pytorch-lightning 1.9.0
torch 1.10.1
torchaudio 0.10.1
torchmetrics 1.3.0.post0
torchvision 0.11.2
But still no work.
from libcom.
The latest code has fixed the trilinear bugs for PyTorch version 1.11.0 or later. Please consider upgrading PyTorch and rebuilding the library. Hope this can help you. Alternatively, you can try the source code for image harmonization, the link to which is provided in our documentation.
from libcom.
Related Issues (20)
- cpu device support HOT 1
- Couldn't get it installed on Mac HOT 1
- How could i do image harmonization like demo_image_composition? HOT 1
- 处理后的图像,细节部分处理不行,如何改善? HOT 1
- Failed to produce desired output HOT 1
- Training for specific use cases HOT 3
- Pretrained model AutoDownload error HOT 3
- Getting out of memory HOT 1
- pip install problem HOT 3
- training HOT 1
- pip install libcom error HOT 1
- CudaCheckError when applying CDTNet for image harmonization HOT 1
- 您好,controllable_composition生成的图像分辨率是512*512,看起来比较模糊,请问有办法生成分辨率更大或更清晰的图片吗? HOT 1
- Pip Installation Error: opencv_python==4.1.2.30: No Matching Distribution Found HOT 1
- 阴影生成模型SGDiffusion HOT 3
- pip install libcom fails HOT 1
- Resolution is too low HOT 1
- Import error for trilinear package HOT 1
- Unexpected harmonization results 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 libcom.