Coder Social home page Coder Social logo

zhanglichao / generatedtir_tracking Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 12.0 26.18 MB

Synthetic data generation for end-to-end TIR tracking (TIP2018)

MATLAB 58.00% C++ 18.69% C 9.62% HTML 12.01% CSS 0.02% Python 1.60% TeX 0.03% Shell 0.04%
image-to-image-translation thermal-infrared visual-tracking

generatedtir_tracking's People

Contributors

zhanglichao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

generatedtir_tracking's Issues

not getting the same results even using opt.txt

original image:
image

chip:
image
ir:
image

code:

    opt = """
    aspect_ratio: 1.0
    batchSize: 1
    checkpoints_dir: ./checkpoints
    dataroot: /home/lichao/tracking/datasets/GOT-10k/train
    dataset_mode: single
    display_id: 1
    display_port: 8097
    display_winsize: 256
    fineSize: 256
    gpu_ids: []
    how_many: 10000000
    init_type: normal
    init_gain: 0.02
    input_nc: 3
    isTrain: False
    loadSize: 256
    max_dataset_size: inf
    model: test
    nThreads: 2
    n_layers_D: 3
    name: thermal_pix2pix_1ch_all_batch4
    ndf: 64
    ngf: 64
    no_dropout: True
    no_flip: False
    norm: batch
    ntest: inf
    output_nc: 1
    phase: test
    preprocess: 
    resize_or_crop: resize_and_crop
    results_dir: /home/lichao/tracking/datasets/GOT-10k_i_/train
    serial_batches: False
    which_direction: BtoA
    which_epoch: 25
    netD: basic
    netG: unet_256
    """
    opt = objectview(yaml.load(opt))
    p = Pix2PixModel(opt)
    load_model_state(p.netG, "/home/maksim/Downloads/net_G_pix2pix.pth")
    image = Image.open("/home/maksim/data/FLIR_ADAS_1_3/train/RGB/FLIR_00006.jpg")
    d = 1024
    x, y = 500, 516

    image = image.crop((x, y, x+d, y+d))
    image_np = np.asarray(image)
    plt.imshow(image_np)
    plt.show()
    image_tensor = ToTensor()(image_np).float().unsqueeze(0)
    ir = p.netG.forward(image_tensor)
    plt.imshow(ir.data.numpy()[0,0], cmap="gray")
    plt.show()

test_pix2pix_got error

Hello, I did experiments on my own dataset. However, the Generated thermal infrared images are blurred.The command I entered is as follows:python test_pix2pix_got.py --dataroot ./datasets/facades --name thermal_pix2pix_1ch_all_batch4 --model test --dataset_mode single --which_model_netG unet_256 --which_direction AtoB --norm batch --which_epoch 25 --results_dir ./result --output_nc 1 --no_dropout --loadSize 256 --gpu_ids 0
1
1-1
2
2-1

Ask for help! I got bad result.

Hi zhang,
I generated the TIR iamges by using pix2pix weight you have provided, but I got bad result. Could you give me the best model weight

errors of using your pix2pix model

Hi,

Thank you for your very nice work!

I am now trying to test with your trained model using my RGB data to generate infrared data. But I got the following error:

"size mismatch for model.model.3.weight: copying a param with shape torch.Size([128, 1, 4, 4]) from checkpoint, the shape in current model is torch.Size([128, 3, 4, 4])."

do you have any idea why this happen and how to solve this?

Thanks a lot!

pix2pix reports an error

Hi, thank you for sharing. I downloaded your weight file. But I encountered a problem using https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix. CycleGAN can generate thermal infrared images, but pix2pix reports an error. I enter the command in the terminal as: python test.py --dataroot ./datasets/visible/ --direction AtoB --model test --name net_G_pix2pix. But the error message is AttributeError: 'Sequential' object has no attribute 'model'.

'Reference to nonexistent field' error occurs while 'ECO_tir' tracker is running

Hello.
I'm very impressed by your study results so I want to run your tracker.
However, while 'ECO_tir' tracker is running, I got an error, "Reference to nonexistent field'net'".

This is my procedure :

1. download vot tool kit and create VOT_workspace. ( experiment=vottir2016, identifier=ECO_tir, language=matlab,...)
2. download  matconvnet and compiled it. set it's path on setup_paths.m with my local path
3. set 'ECO_repo_path' on VOT_integration/tracker_ECO_tir.m  with my local  repo. path.
4. copy tracker_EOC_tir.m  into my VOT workspace folder.
5. run run_experiments.

This is errors printed command lines :

Initializing workspace ...
Verifying native components ...
Experiment baseline
  Tracker ECO_tir
    Sequence quadrocopter2
      Repetition 1
      Tracker execution interrupted: Unable to establish connection.
An error occurred while using: traxclient
Unable to establish connection.

ERROR: tracker_run (line 77)
    data = traxclient(tracker.command, callback, ...

ERROR: experiment_supervised (line 71)
    data = tracker_run(tracker, @callback, data);

ERROR: tracker_evaluate (line 57)
	[files, metadata] = experiment_function(tracker, sequence, directory, parameters, scan);

ERROR: workspace_evaluate>execute_iterator (line 128)
            tracker_evaluate(event.tracker, event.sequence, event.experiment);

ERROR: iterate (line 65)
            context = iterator(event, context);

ERROR: workspace_evaluate (line 93)
context = iterate(experiments, trackers, sequences, 'iterator', iterator, 'context', context);

ERROR: run_experiments (line 10)
workspace_evaluate(tracker, sequences, experiments);

This is error information from VOT_integration\error_reports\ECO_OTB_DEEP_settings_tircnn_200829_1327.mat

  1. error
    error.message means "Reference to nonexistent field'net'".
    err

  2. error. stack
    erro stack

According to stack, this error occurs at the 93th line in 'init features.m'.
net = features{k}.fparams.net;
=>This error means 'fparams.net' field was not set before .
Could you please give any advice?
Thanks in advance.

bad test results on pix2pix

I downloaded "net_G_pix2pix.pth" this model . Then rename it to "25_net_G.pth" and put it under checkpoints / thermal_pix2pix_1ch_all_batch4 directory.
Use it to generate thermal infrared pictures.
But result was very bad. Did I have a problem somewhere?

1586579009(1)

The generated image is so fuzzy.

Thank you for your outstanding contribution to infrared image generation.I am currently working on multi-modality research.
I would like to ask you about the issue of infrared data. I have tested your public code,It doesn't seem to have worked out as well as it could.Can you give me the best model?
set04-V001-I01990

Size of image

Hi,

Can this model be used to general images with original size? I have tested the model, but all images are resized to 256*256.

Thanks!
Xingchen

Questions about pix2pix and CycleGan availability

Hello,

This ins't an issue, I was more wondering if you plan on releasing a version of your trained pix2pix or/and CycleGAN from the paper: Synthetic data generation for end-to-end thermal infrared tracking ?
Did you use the original implementation of pix2pix and CycleGAN or a Tensorflow/Pytorch implementation?
And can we expect the TIR images made from pix2pix to be available as a dataset?

In the meantime, thanks for your time and efforts.

Licensing

Just wondering if you can add a license. I am hoping it is MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.