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

test_vid.mp4 #21

Open
deepConnectionism opened this issue Jul 27, 2020 · 4 comments
Open

test_vid.mp4 #21

deepConnectionism opened this issue Jul 27, 2020 · 4 comments

Comments

@deepConnectionism
Copy link

Where is test_vid.mp4?

@tancik
Copy link
Owner

tancik commented Aug 2, 2020

The detector takes a video as one of the arguments. test_vid.mp4 is an example filename for the video. It should be modified to the name of your captured video.

@Charmve
Copy link

Charmve commented Jan 22, 2021

I also had like to know where should test_vid.mp4 be put.

because I met some debug errors, as following.

$ python3 detector.py \
  --detector_model detector_models/stegastamp_detector \
  --decoder_model saved_models/stegastamp_pretrained \
  --video test_vid.mp4 \
  --save_video out/test_out

image

image

test_vid.mp4
Traceback (most recent call last):
  File "detector.py", line 196, in <module>
    main()
  File "detector.py", line 79, in main
    f_height, f_width = frame.shape[0:2]
AttributeError: 'NoneType' object has no attribute 'shape'

Thanks. @tancik

@HanGod1
Copy link

HanGod1 commented Jul 19, 2021

Hello, is your problem solved? Do you know what kind of file should I put in the save_video? Also what kind of video should I take? Could I use camera on the computer screen or printed posters?

@Charmve
Copy link

Charmve commented Jan 19, 2022

## 修改前
self.stn_params = Sequential([
            Input(shape=(8, 400, 400, 3)),
            Conv2D(32, (3, 3), strides=2, activation='relu', padding='same'),
            Conv2D(64, (3, 3), strides=2, activation='relu', padding='same'),
            Conv2D(128, (3, 3), strides=2, activation='relu', padding='same'),
            Flatten(),
            Dense(128, activation='relu')
        ])
        
## 修改后
self.stn_params1 = Conv2D(32, (3, 3), strides=2, activation='relu', padding='same')
self.stn_params2 = Conv2D(64, (3, 3), strides=2, activation='relu', padding='same')
self.stn_params3 = Conv2D(128, (3, 3), strides=2, activation='relu', padding='same')
self.stn_params4 = Flatten()
self.stn_params5 = Dense(128, activation='relu')

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

4 participants