Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Finding Incompatible JPEG Blocks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Levecque Etienne
Finding Incompatible JPEG Blocks
Commits
4fc6813f
Commit
4fc6813f
authored
1 year ago
by
Levecque Etienne
Browse files
Options
Downloads
Patches
Plain Diff
fix: correct bug in trivial search
parent
c1cf8e8b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
antecedent/image.py
+2
-1
2 additions, 1 deletion
antecedent/image.py
with
2 additions
and
1 deletion
antecedent/image.py
+
2
−
1
View file @
4fc6813f
...
@@ -8,6 +8,7 @@ import numpy as np
...
@@ -8,6 +8,7 @@ import numpy as np
from
antecedent.block
import
Block
from
antecedent.block
import
Block
from
antecedent.pipeline
import
NaivePipeline
,
create_pipeline
from
antecedent.pipeline
import
NaivePipeline
,
create_pipeline
from
antecedent.utils
import
round
class
Image
:
class
Image
:
...
@@ -152,7 +153,7 @@ class Image:
...
@@ -152,7 +153,7 @@ class Image:
if
pipeline
is
None
:
if
pipeline
is
None
:
pipeline
=
self
.
pipeline
pipeline
=
self
.
pipeline
block_values
=
np
.
stack
([
block
.
value
.
reshape
(
-
1
,
8
,
8
)
for
block
in
blocks
])
block_values
=
np
.
stack
([
block
.
value
.
reshape
(
-
1
,
8
,
8
)
for
block
in
blocks
])
starts
=
pipeline
.
backward
(
block_values
)
starts
=
round
(
pipeline
.
backward
(
block_values
)
)
transformed_starts
=
pipeline
.
forward
(
starts
)
transformed_starts
=
pipeline
.
forward
(
starts
)
completed
=
0
completed
=
0
for
i
in
range
(
len
(
starts
)):
for
i
in
range
(
len
(
starts
)):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment