Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression issues when testing #38

Open
lyysl opened this issue Jan 29, 2025 · 2 comments
Open

Compression issues when testing #38

lyysl opened this issue Jan 29, 2025 · 2 comments

Comments

@lyysl
Copy link

lyysl commented Jan 29, 2025

I tried to run the code but it does not give output.

python l3c.py models 0306_0001 enc ../test/kodim01.png ./img.l3c
*** AC_NEEDS_CROP_DIM = 3000000
Status: torchac-backend-gpu available: False // torchac-backend-cpu available: True // CUDA available: True
*** Using torchac-backend-cpu; did set CUDA_AVAILABLE=False and DEVICE=cpu
Testing 0306_0001 at -1 ---
Restoring models/0306_0001 cr oi/ckpts/ckpt_0001002750.pt... (strict=True)
Illegal instruction (core dumped)

Is it my cpu problem? Thx.

@lyysl
Copy link
Author

lyysl commented Jan 29, 2025

Also , when I tried the test.py, it stucks in the final line and keep running.

python test.py ./models/ 0306_0001 ../test/
*** AC_NEEDS_CROP_DIM = 3000000
Testing 0306_0001 at -1 ---
Restoring ./models/0306_0001 cr oi/ckpts/ckpt_0001002750.pt... (strict=True)
Testing Testset(test): in ../test, 1 images

@lyysl
Copy link
Author

lyysl commented Jan 30, 2025

It seems the problem occurs in src/modules/multiscale_network.py line 241 x = self.sub_rgb_mean(x) # something like -128..128 but not really. The problem occurs after this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant