Comments (7)
You can just comment line 42 out
from watermark-removal.
I have got the same problem on Colab:
num_gpus_per_job: 1
num_cpus_per_job: 4
num_hosts_per_job: 1
memory_per_job: 32
gpu_type: nvidia-tesla-p100
name: places2_gated_conv_v100
model_restore:
dataset: celebahq
random_crop: False
val: False
log_dir: logs/full_model_celeba_hq_256
gan: sngan
gan_loss_alpha: 1
gan_with_mask: True
discounted_mask: True
random_seed: False
padding: SAME
train_spe: 4000
max_iters: 100000000
viz_max_out: 10
val_psteps: 2000
data_flist:
celebahq: ['data/celeba_hq/train_shuffled.flist', 'data/celeba_hq/validation_static_view.flist']
celeba: ['data/celeba/train_shuffled.flist', 'data/celeba/validation_static_view.flist']
places2: ['data/places2/train_shuffled.flist', 'data/places2/validation_static_view.flist']
imagenet: ['data/imagenet/train_shuffled.flist', 'data/imagenet/validation_static_view.flist']
static_view_size: 30
img_shapes: [256, 256, 3]
height: 128
width: 128
max_delta_height: 32
max_delta_width: 32
batch_size: 16
vertical_margin: 0
horizontal_margin: 0
ae_loss: True
l1_loss: True
l1_loss_alpha: 1.0
guided: False
edge_threshold: 0.6
image size: (682, 1024, 3)
mask image size: (683, 1024, 3)
(682, 1024, 3)
from watermark-removal.
Traceback (most recent call last):
File "main.py", line 32, in
input_image = preprocess_image(image, args.watermark_type)
File "/Users/askie/wwwroot/watermark-removal/preprocess_image.py", line 42, in preprocess_image
assert image.shape == preprocessed_mask_image
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
from watermark-removal.
i meet this question too
from watermark-removal.
preprocess_image.py line 42 -> assert image.shape == preprocessed_mask_image.shape
from watermark-removal.
As @VIkill33 said, you can just comment it out. That worked for me. the assert image.shape == preprocessed_mask_image.shape
is a check that apparently doesn't need to be there because it works fine without it.
from watermark-removal.
Can anybody comment, on why I am getting this kind of response from model
from watermark-removal.
Related Issues (20)
- No module named PIL on Ubuntu 22.04 HOT 3
- ERROR: Config File doesn't exist HOT 1
- How do we create new watermarks?
- python3: can't open file 'main.py': [Errno 2] No such file or directory HOT 1
- Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2847, in open fp.seek(0) AttributeError: 'str' object has no attribute 'seek' HOT 1
- 1
- AttributeError: module 'tensorflow' has no attribute 'contrib' HOT 2
- dependencies are not included
- Cannot find mask file for portrait images HOT 2
- Google Colab removed support for Tensorflow 1, and it is not possible to use %tensorflow_version 1.x magic anymore. HOT 6
- ValueError: Couldn't find 'checkpoint' file or checkpoints in given directory model/
- The generated image is completely incorrect HOT 3
- 安装不上TensorFlow,试了3.5,3.11俩Python版本 HOT 3
- Video watermark removal
- Missing potrait/mask.png HOT 1
- Please add model for Deviantart watermark remover HOT 1
- tensorflow.python.framework.errors_impl.OutOfRangeError: Read less bytes than requested HOT 2
- can you remove the istock video logo ? please help me
- Image size not supported!!! HOT 2
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 watermark-removal.